0.3.0 • Published 5 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/waifu2xcommand.
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-botnpm package. - Run
sachan-botto launch the bot.