1.0.1 • Published 9 months ago
tebot v1.0.1
Tebot
Tebot can help you set Telegram bot names, descriptions, and commands.
Installation
npm i tebot
Usage
const { Tebot } = require('tebot')
const { Telegraf } = require('telegraf')
// import { Tebot } from 'tebot'
// import { Telegraf } from 'telegraf'
const bot = new Telegraf('BOT_TOKEN')
const tebot = new Tebot(bot, {
admins: [ 1234567890 ],
info: {
titles: { en: 'My Bot' },
bios: { en: 'My Bot Short Description' },
descriptions: { en: 'My Bot Description' }
},
commands: [
{
type: 'default',
code: 'en',
list: {
start: '',
help: '',
settings: '',
privacy: 'privacy policy'
}
}
]
})
tebot.setAdminCommands() || bot.launch()