Chat's marked ID, its username, phone or "me" or "self".
Optionalparams: {Additional fetch parameters
OptionaladdOffset?: numberAdditional offset from offset, in resulting messages.
This can be used for advanced use cases, like:
MSGID:
offset = MSGID, addOffset = -20, limit = 20MSGID:
offset = MSGID, addOffset = -10, limit = 20Optionallimit?: numberLimits the number of messages to be retrieved.
OptionalmaxId?: numberMaximum message ID to return.
OptionalminId?: numberMinimum message ID to return
Optionaloffset?: GetHistoryOffsetOffset for pagination
Optionalreverse?: booleanWhether to retrieve messages in reversed order (from older to recent), starting from offset (inclusive).
Note: Using
reverse=truerequires you to pass offset from which to start fetching the messages "downwards". If you callgetHistorywithreverse=trueand without any offset, it will return an empty array.
OptionalchunkSize?: numberChunk size. Usually you shouldn't care about this.
Optionallimit?: numberLimits the number of messages to be retrieved.
Iterate over chat history. Wrapper over getHistory