GetHistory

class pyrogram.raw.functions.messages.GetHistory

Gets back the conversation history with one interlocutor / within a chat.

Details
  • Layer: 122

  • ID: 0xdcbb8260

Parameters
  • peer (InputPeer) – Target peer.

  • offset_id (int 32-bit) – Only return messages starting from the specified message ID.

  • offset_date (int 32-bit) – Only return messages sent before the specified date.

  • add_offset (int 32-bit) – Number of list elements to be skipped, negative values are also accepted.

  • limit (int 32-bit) – Number of results to return.

  • max_id (int 32-bit) – If a positive value was transferred, the method will return only messages with IDs less than max_id.

  • min_id (int 32-bit) – If a positive value was transferred, the method will return only messages with IDs more than min_id.

  • hash (int 32-bit) – Result hash.

Returns

messages.Messages – Object contains infor on list of messages with auxiliary data.