messages.GetReplies

class pyrogram.raw.functions.messages.GetReplies

Get messages in a reply thread

Details:
  • Layer: 223

  • 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
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── msg_idint
├── offset_idint
├── offset_dateint
├── add_offsetint
├── limitint
├── max_idint
├── min_idint
└── hashlong

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,
    )
)