Total Pageviews

Saturday, 10 July 2021

Sachan

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_KEYDeepAI API key for /waifu2x command.

Using Vercel and Webhooks (recommended)

  1. Configure the environment variables in vercel.json.
  2. Deploy to Vercel.
  3. Set up the Webhookhttps://api.telegram.org/bot<token>/setWebhook?url=<url> (Make sure to use a private URL!)

Using polling

  1. Configure the environment variables.
  2. Install sachan-bot npm package.
  3. Run sachan-bot to launch the bot.

Why the name

That's how Himawari calls Sakurako.


frm https://github.com/kidonng/sachan-bot

No comments:

Post a Comment