Skip to main content
Deno 2 is finally here 🎉️
Learn more
Very Popular
Go to Latest
method Keyboard.requestPoll
import { Keyboard } from "https://deno.land/x/grammy@v1.30.0/convenience/keyboard.ts";

Creates a new poll request button. 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.

Parameters

text: string

The text to display

optional
type: KeyboardButtonPollType["type"]

The type of permitted polls to create, omit if the user may send a poll of any type

Returns

KeyboardButton.RequestPollButton