Layer 224
KeyboardButtonRequestPoll
A button that allows the user to create and send a poll when pressed; available only in private
constructor
keyboardButtonRequestPoll#7a11d782 flags:# style:flags.10?KeyboardButtonStyle quiz:flags.0?Bool text:string = KeyboardButton;
Parameters
| Name | Type | Description |
|---|---|---|
| Style | flags.10?KeyboardButtonStyle | |
| 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: // Style: &tg.KeyboardButtonStyle{}, // Quiz: true, }