Skip to content

export Class

Poll ​

extends ​

BaseClass<Poll, PollPacket>

implements ​

Partial<PollPacket>

Constructor ​

ts
new Poll( client, packet )
ParameterTypeDescription
clientClient
packetPollPacket

Properties ​

get chat : undefined | BaseChat ​

allows_multiple_answers : boolean ​

answers? : PollAnswers ​

business_connection_id? : string ​

chat_id? : number ​

readonly client : Client ​

close_date? : number ​

correct_option_id? : number ​

explanation? : string ​

explanation_entities? : MessageEntities | MessageEntityPayload[] ​

id : string ​

is_anonymous : boolean ​

is_closed : boolean ​

message_id? : number ​

open_period? : number ​

options : PollOption[] ​

question : string ​

question_entities : MessageEntities | MessageEntityPayload[] ​

total_voter_count : number ​

type : "regular" | "quiz" ​

Methods ​

asyncstop( reply_markup ) ​

ParameterTypeDescription
reply_markup?InlineKeyboardMarkup

Returns: Promise<boolean>