telegramx.js

PollAnswer

interface

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

Declaration

interface PollAnswer 

Properties

option_idsproperty#
option_ids: number[];

0-based identifiers of chosen answer options. May be empty if the vote was retracted.

option_persistent_ids: string[];

Persistent identifiers of the chosen answer options. May be empty if the vote was retracted.

poll_idproperty#
poll_id: string;

Unique poll identifier

userproperty#
user?: User;

Optional. The user that changed the answer to the poll, if the voter isn't anonymous

voter_chatproperty#
voter_chat?: Chat;

Optional. The chat that changed the answer to the poll, if the voter is anonymous