Module

x/grammy/mod.ts>Keyboard#requestPoll

The Telegram Bot Framework.
Very Popular
Latest
method Keyboard.prototype.requestPoll
import { Keyboard } from "https://dotland.deno.dev/x/grammy@v1.31.0/mod.ts";

Adds 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