messages.getUnreadMentions

Get unread messages where we were mentioned

 Method schema is available as of layer 148. Switch ยป

Parameters

Name Type Description
flags # Flags, see TL conditional fields
peer InputPeer Peer where to look for mentions
top_msg_id flags.0?int If set, considers only messages within the specified forum topic
offset_id int Offsets for pagination, for more info click here
add_offset int Offsets for pagination, for more info click here
limit int Maximum number of results to return, see pagination
max_id int Maximum message ID to return, see pagination
min_id int Minimum message ID to return, see pagination

Result

messages.Messages

Possible errors

Code Type Description
400 CHANNEL_INVALID The provided channel is invalid.
400 CHANNEL_PRIVATE You haven't joined this channel/supergroup.
400 MSG_ID_INVALID Invalid message ID provided.
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

Forums

Telegram allows creating forums with multiple distinct topics.

Pagination in the API

How to fetch results from large lists of objects.