Layer 227
KeyboardButtonRequestPoll
Button to request a poll from the user
constructor
keyboardButtonRequestPoll#7a11d782 flags:# style:flags.10?KeyboardButtonStyle quiz:flags.0?Bool text:string = KeyboardButton;
Parameters
| Name | Type | Description |
|---|---|---|
| Style | flags .10? KeyboardButtonStyle | Button style, see here for more info on button styles. |
| 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{ Style: nil, Quiz: nil, Text: "Hello, World!", }