Skip to content

export Interface

PollPayload ​

extends ​

BaseMessagePayload

Properties ​

allow_paid_broadcast? : boolean ​

allows_multiple_answers? : boolean ​

business_connection_id? : string ​

caption_entities? : MessageEntities | MessageEntityPayload[] ​

chat_id? : string | number ​

close_date? : number ​

correct_option_id? : number ​

disable_notification? : boolean ​

explanation? : string ​

explanation_entities? : MessageEntities | MessageEntityPayload[] ​

explanation_parse_mode? : string ​

is_anonymous? : boolean ​

is_closed? : boolean ​

message_effect_id? : string ​

message_thread_id? : number ​

open_period? : number ​

options : PollOptions | PollOption[] ​

parse_mode? : string ​

protect_content? : boolean ​

question : string ​

question_entities? : MessageEntities | MessageEntityPayload[] ​

question_parse_mode? : string ​

reply_markup? : InlineKeyboardMarkup | ReplyKeyboardMarkup | ReplyKeyboardRemove | ForceReply ​

reply_parameters? : ReplyParameters ​

type? : "quiz" | "regular" ​

A modern, powerful library for building your Telegram bots, with seamless support for both JavaScript and Typescript.