messages.GetReplies

class pyrogram.raw.functions.messages.GetReplies

Get messages in a reply thread

Details:
  • Layer: 227

  • ID: 22DDD30C

Parameters:
  • peer (InputPeer) – Peer

  • msg_id (int 32-bit) – Message ID

  • offset_id (int 32-bit) – Offsets for pagination, for more info click here

  • offset_date (int 32-bit) – Offsets for pagination, for more info click here

  • add_offset (int 32-bit) – Offsets for pagination, for more info click here

  • limit (int 32-bit) – Maximum number of results to return, see pagination

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

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

  • hash (int 64-bit) – Hash used for caching, for more info click here

Returns:

messages.Messages

TL Schema

messages.getReplies#22ddd30c
peer:InputPeer
msg_id:int
offset_id:int
offset_date:int
add_offset:int
limit:int
max_id:int
min_id:int
hash:long

= messages.Messages

Parameter Tree

GetReplies
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
├── msg_id → int
├── offset_id → int
├── offset_date → int
├── add_offset → int
├── limit → int
├── max_id → int
├── min_id → int
└── hash → long

Example

await app.invoke(
    GetReplies(
        peer=await app.resolve_peer(chat_id),
        msg_id=0,
        offset_id=0,
        offset_date=0,
        add_offset=0,
        limit=0,
        max_id=0,
        min_id=0,
        hash=0,
    )
)