Skip to content

Latest commit

 

History

History

poll

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Poll

Telegram poll component.

See full docs

Installation

npm

npm install @tlgr/poll

yarn

yarn add @tlgr/poll

pnpm

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.