Link Search Menu Expand Document

Constructor: keyboardButtonRequestPoll

Back to constructors index

A button that allows the user to create and send a poll when pressed; available only in private

Attributes:

NameTypeRequiredDescription
quizBoolOptionalIf set, only quiz polls can be sent
textstringYesButton text

Type: KeyboardButton

Example:

$keyboardButtonRequestPoll = ['_' => 'keyboardButtonRequestPoll', 'quiz' => Bool, 'text' => 'string'];