Bot API 方法

sendPoll

34 个参数。必填项已标出。

参数

参数类型必填
business_connection_idString否
chat_idInteger or String是
message_thread_idInteger否
questionString是
question_parse_modeString否
question_entitiesArray of MessageEntity否
optionsArray of InputPollOption是
is_anonymousBoolean否
typeString否
allows_multiple_answersBoolean否
allows_revotingBoolean否
shuffle_optionsBoolean否
allow_adding_optionsBoolean否
hide_results_until_closesBoolean否
members_onlyBoolean否
country_codesArray of String否
correct_option_idsArray of Integer否
explanationString否
explanation_parse_modeString否
explanation_entitiesArray of MessageEntity否
explanation_mediaInputPollMedia否
open_periodInteger否
close_dateInteger否
is_closedBoolean否
descriptionString否
description_parse_modeString否
description_entitiesArray of MessageEntity否
mediaInputPollMedia否
disable_notificationBoolean否
protect_contentBoolean否
allow_paid_broadcastBoolean否
message_effect_idString否
reply_parametersReplyParameters否
reply_markupInlineKeyboardMarkup or ReplyKeyboardMarkup or ReplyKeyboardRemove or ForceReply否

相关方法

按共同参数计算——原始文档没有这种视角。

方法的说明在 Telegram: 原始文档 · 完整参考