Raw.messages.GetHistory
Returns the conversation history with one interlocutor / within a chat
messages.getHistory#4423e6c5 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;
export namespace Raw {
export namespace messages {
export class GetHistory {
constructor(params: {
peer: Raw.TypeInputPeer;
offsetId: number;
offsetDate: number;
addOffset: number;
limit: number;
maxId: number;
minId: number;
hash: bigint;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x4423e6c5
Property
peer
: Raw.TypeInputPeerTarget peer
offsetId
: numberOnly return messages starting from the specified message id
offsetDate
: numberOnly return messages sent before the specified date
addOffset
: numberNumber of list elements to be skipped, negative values are also accepted.
limit
: numberNumber of results to return
maxId
: numberIf a positive value was transferred, the method will return only messages with ids less than maxId
minId
: numberIf a positive value was transferred, the method will return only messages with ids more than minId
hash
: bigintResult hash