messages.GetUnreadMentions

class pyrogram.raw.functions.messages.GetUnreadMentions

Get unread messages where we were mentioned

Details:
  • Layer: 223

  • ID: F107E790

Parameters:
  • peer (InputPeer) – Peer where to look for mentions

  • offset_id (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) – Maximum message ID to return, see pagination

  • min_id (int 32-bit) – Minimum message ID to return, see pagination

  • top_msg_id (int 32-bit, optional) – If set, considers only messages within the specified forum topic

Returns:

messages.Messages

TL Schema

messages.getUnreadMentions#f107e790
flags:#
peer:InputPeer
top_msg_id:flags.0?int
offset_id:int
add_offset:int
limit:int
max_id:int
min_id:int

= messages.Messages

Parameter Tree

GetUnreadMentions
├── 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
├── top_msg_idint (optional)
├── offset_idint
├── add_offsetint
├── limitint
├── max_idint
└── min_idint

Example

await app.invoke(
    GetUnreadMentions(
        peer=await app.resolve_peer(chat_id),
        top_msg_id=0,
        offset_id=0,
        add_offset=0,
        limit=0,
        max_id=0,
        min_id=0,
    )
)