0.3.0 • Published 4 years ago
sachan-bot v0.3.0
🌸 Sachan
Source code for Telegram bot @sachanbot, a multifunctional Telegram bot built with Telegraf. It is highly extensible and suitable as a scaffold/reference for your own bot.
Setup
The following environment variables should be provided:
BOT_TOKEN
: Telegram bot token. Click here to create a bot.- (Optional)
DEEPAI_API_KEY
: DeepAI API key for/waifu2x
command.
Using Vercel and Webhooks (recommended)
- Configure the environment variables in
vercel.json
. - Deploy to Vercel.
- Set up the Webhook:
https://api.telegram.org/bot<token>/setWebhook?url=<url>
(Make sure to use a private URL!)
Using polling
- Configure the environment variables.
- Install
sachan-bot
npm package. - Run
sachan-bot
to launch the bot.