interface RequestPollButton {
    requestPoll: KeyboardButtonPollType;
    text: string;
}

Hierarchy (view full)

Properties

Properties

If specified, the user will be asked to create a poll and send it to the bot when the button is pressed. Available in private chats only.

text: string

Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed