Telegram poll component.
See full docs
npm install @tlgr/poll
yarn add @tlgr/poll
pnpm add @tlgr/poll
import {Poll} from '@tlgr/poll'
// simple example without overrides
const bot = new Telegraf(TOKEN);
const poll = new Poll(bot, options);
bot.start(ctx => {
poll.send(ctx);
})
bot.launch()
Code available at bin.ts
file.