A possible answer of a poll
pollAnswer#6ca9c2e9 text:string option:bytes = PollAnswer;
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| text | TextWithEntities | Textual representation of the answer (only Premium users can use custom emoji entities here). |
| option | bytes | The param that has to be passed to messages.sendVote. |
| media | flags.0?MessageMedia | Optional media attachment displayed alongside the answer |
| added_by | flags.1?Peer | The peer who added this answer; only set for answers dynamically added to an open-answer poll, see polls » |
| date | flags.1?int | When this answer was added; only set for answers dynamically added to an open-answer poll |
Telegram Premium is an optional subscription service that unlocks additional exclusive client-side and API-side features, while helping support the development of the app.
Telegram allows including animated and static custom emojis inside of messages.
Vote in a poll
Starting from layer 159, the vote will be sent from the peer specified using messages.saveDefaultSendAs.
Before voting, clients should check that the user is actually allowed to vote: voting is not possible if the poll is closed, if it is subscriber-only » and the user is not an eligible subscriber, or if it is country-restricted » and the user's phone_country_iso2 » is not in the poll's allowed country list. See vote restrictions » for the full list of conditions.
Telegram allows sending polls and quizzes, that can be voted on by thousands, if not millions of users in chats and channels.