@tlgr/poll
TypeScript icon, indicating that this package has built-in type declarations

1.5.2 • Public • Published

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.

Package Sidebar

Install

npm i @tlgr/poll

Weekly Downloads

1

Version

1.5.2

License

Apache 2.0

Unpacked Size

22.4 kB

Total Files

8

Last publish

Collaborators

  • vitalicset