Skip to content

GramIO API Reference / gramio/dist / TelegramPollAnswer

Interface: TelegramPollAnswer

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

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:2139
option_persistent_idsstring[]Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.@gramio/types/out/objects.d.ts:2143
poll_idstringUnique poll identifier@gramio/types/out/objects.d.ts:2127
user?TelegramUserOptional. The user that changed the answer to the poll, if the voter isn't anonymous@gramio/types/out/objects.d.ts:2135
voter_chat?TelegramChatOptional. The chat that changed the answer to the poll, if the voter is anonymous@gramio/types/out/objects.d.ts:2131