Get messages containing polls with unread votes »
messages.messages#1d73e7ea messages:Vector<Message> topics:Vector<ForumTopic> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesSlice#5f206716 flags:# inexact:flags.1?true count:int next_rate:flags.0?int offset_id_offset:flags.2?int search_flood:flags.3?SearchPostsFlood messages:Vector<Message> topics:Vector<ForumTopic> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.channelMessages#c776ba4e flags:# inexact:flags.1?true pts:int count:int offset_id_offset:flags.2?int messages:Vector<Message> topics:Vector<ForumTopic> chats:Vector<Chat> users:Vector<User> = messages.Messages;
messages.messagesNotModified#74535f21 count:int = messages.Messages;
---functions---
messages.getUnreadPollVotes#43286cf2 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;
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| peer | InputPeer | The chat to fetch unread poll votes from |
| top_msg_id | flags.0?int | If the chat is a forum, restrict results to this 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 | Only return messages with IDs less than or equal to this value |
| min_id | int | Only return messages with IDs greater than or equal to this value |
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
How to fetch results from large lists of objects.
Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.