export Class
Poll ​
extends ​
BaseClass<Poll, PollPacket>
implements ​
Partial<PollPacket>
Constructor ​
ts
new Poll( client, packet )| Parameter | Type | Description |
|---|---|---|
client | Client | |
packet | PollPacket |
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 : "quiz" | "regular" ​
Methods ​
asyncstop( reply_markup ) ​
| Parameter | Type | Description |
|---|---|---|
reply_markup? | InlineKeyboardMarkup |
Returns:
Promise<boolean>