@tlgr/poll
v1.5.2
Published
Telegram component to create poll
Downloads
4
Maintainers
Readme
Poll
Telegram poll component.
See full docs
Installation
npm install @tlgr/poll
yarn add @tlgr/poll
pnpm add @tlgr/poll
Example
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()
Demo
Code available at bin.ts
file.