Layer 224
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 |
|---|---|---|
| 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: "Hello, World!", // Optional fields: // Quiz: true, }