MadelineProtoDocs/old_docs/API_docs_v38/constructors/keyboardButtonRequestPoll.md
2020-06-16 17:50:25 +02:00

979 B

title description image
keyboardButtonRequestPoll A button that allows the user to create and send a poll when pressed; available only in private https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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:

Name Type Required Description
quiz Bool Optional If set, only quiz polls can be sent
text string Yes Button text

Type: KeyboardButton

Example:

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

Or, if you're into Lua:

keyboardButtonRequestPoll={_='keyboardButtonRequestPoll', quiz=Bool, text='string'}