Multifunctional Telegram bot.
https://npm.im/sachan-bot
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.
Why the name
That's how Himawari calls Sakurako.
frm https://github.com/kidonng/sachan-bot
No comments:
Post a Comment