Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1.24 KB

README.md

File metadata and controls

20 lines (16 loc) · 1.24 KB

CloneBot

Template repository for making clone-able telegram bots using grammY telegram bot library.

Variables

  • BOT_TOKEN - A telegram bot token (for testing the bot when hosted locally).
  • WEBHOOK_PATH - The path to point the webhook domain to, eg: setting it as CloneBot would point the webhook to https://<your-deploy-domain>/CloneBot?token=<token>.

Setting up

This repository can be deployed and tested right out of the box.

  1. Deploy it on dash.deno.com (or wherever, just run it using webhooks).
  2. Set the webhook for your main bot: https://api.telegram.org/bot<token>/setWebhook?url=https://<your-deploy-domain>/<WEBHOOK_PATH>?token=<token>.
  3. Open the bot on telegram, it should now be responding to /start.
  4. Forward a message with a bot's token from @BotFather to this bot and wait for the confirmation message!

In addition to that, you can test the bot locally using deno tasks: deno task test.

Credits