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

1.5.2 • Public • Published

Quiz

Telegram Quiz component.

See full docs

Installation

npm

npm install @tlgr/quiz

yarn

yarn add @tlgr/quiz

pnpm

pnpm add @tlgr/quiz

Example

import {Quiz} from '@tlgr/quiz'
// simple example without overrides
const bot = new Telegraf(TOKEN);
const quiz = new Quiz(bot, options);

bot.start(ctx => {
  quiz.send(ctx);
})

bot.launch()

Demo

Code available at bin.ts file.

Package Sidebar

Install

npm i @tlgr/quiz

Weekly Downloads

1

Version

1.5.2

License

Apache 2.0

Unpacked Size

20.5 kB

Total Files

8

Last publish

Collaborators

  • vitalicset