KeyboardButtonRequestPoll

class pyrogram.raw.types.KeyboardButtonRequestPoll

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

Constructor of KeyboardButton.

Details:
  • Layer: 223

  • ID: 7A11D782

Parameters:
  • text (str) – Button text

  • style (KeyboardButtonStyle, optional)

  • quiz (bool, optional) – If set, only quiz polls can be sent

TL Schema

keyboardButtonRequestPoll#7a11d782
flags:#
style:flags.10?KeyboardButtonStyle
quiz:flags.0?Bool
text:string

= KeyboardButton

Parameter Tree

KeyboardButtonRequestPoll
├── styleKeyboardButtonStyle (optional)
│ └── KeyboardButtonStyle
│ ├── bg_primarytrue (optional)
│ ├── bg_dangertrue (optional)
│ ├── bg_successtrue (optional)
│ └── iconlong (optional)
├── quizBool (optional)
└── textstring

Example

KeyboardButtonRequestPoll(
    text="Open",
)