Skip to content

GramIO API Reference / gramio/dist / TelegramPollAnswer

Interface: TelegramPollAnswer

Defined in: @gramio/types/out/objects.d.ts:1809

This object represents an answer of a user in a non-anonymous poll.

Documentation

Properties

PropertyTypeDescriptionDefined in
option_idsnumber[]0-based identifiers of chosen answer options. May be empty if the vote was retracted.@gramio/types/out/objects.d.ts:1825
poll_idstringUnique poll identifier@gramio/types/out/objects.d.ts:1813
user?TelegramUserOptional. The user that changed the answer to the poll, if the voter isn't anonymous@gramio/types/out/objects.d.ts:1821
voter_chat?TelegramChatOptional. The chat that changed the answer to the poll, if the voter is anonymous@gramio/types/out/objects.d.ts:1817