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:
223ID:
7A11D782
- Parameters:
text (
str) – Button textstyle (
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
├── style →
KeyboardButtonStyle (optional)│ └──
KeyboardButtonStyle│ ├── bg_primary →
true (optional)│ ├── bg_danger →
true (optional)│ ├── bg_success →
true (optional)│ └── icon →
long (optional)├── quiz →
Bool (optional)└── text →
stringExample
KeyboardButtonRequestPoll(
text="Open",
)