Raw.messages.GetHistory

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.TypeInputPeer

    Target peer

  • offsetId : number

    Only return messages starting from the specified message id

  • offsetDate : number

    Only return messages sent before the specified date

  • addOffset : number

    Number of list elements to be skipped, negative values are also accepted.

  • limit : number

    Number of results to return

  • maxId : number

    If a positive value was transferred, the method will return only messages with ids less than maxId

  • minId : number

    If a positive value was transferred, the method will return only messages with ids more than minId

  • hash : bigint

    Result hash

Results

Raw.messages.TypeMessages