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
styleKeyboardButtonStyleOptional
quizBoolOptionalIf set, only quiz polls can be sent
textstringYesButton text

Type: KeyboardButton

Example:

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