@tlgr/quiz
v1.5.2
Published
Telegram component for build quiz
Downloads
8
Maintainers
Readme
Quiz
Telegram Quiz component.
See full docs
Installation
npm install @tlgr/quiz
yarn add @tlgr/quiz
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.