Layer 220
KeyboardButtonRequestPoll
A button that allows the user to create and send a poll when pressed; available only in private
constructor
keyboardButtonRequestPoll#bbc7515d flags:# quiz:flags.0?Bool text:string = KeyboardButton;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Quiz | flags.0?Bool | If set, only quiz polls can be sent |
| Text | string | Button text |
Returns
KeyboardButtonGogram Example
// Creating KeyboardButtonRequestPoll constructor obj := &tg.KeyboardButtonRequestPoll{ Text: "...", // Optional fields: // Quiz: true, }