Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xditya/GrammyCloneableBot
Template repository for creating a clone-able bot on telegram using grammY telegram bot library.
https://github.com/xditya/GrammyCloneableBot
clone clonebot grammy telegram
Last synced: 3 months ago
JSON representation
Template repository for creating a clone-able bot on telegram using grammY telegram bot library.
- Host: GitHub
- URL: https://github.com/xditya/GrammyCloneableBot
- Owner: xditya
- License: lgpl-3.0
- Created: 2022-12-08T06:04:00.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-11T11:07:21.000Z (almost 2 years ago)
- Last Synced: 2024-07-15T10:48:54.683Z (4 months ago)
- Topics: clone, clonebot, grammy, telegram
- Language: TypeScript
- Homepage:
- Size: 8.79 KB
- Stars: 12
- Watchers: 3
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-grammY - xditya/GrammyCloneableBot - A template for bots that can be cloned. (Templates)
README
# CloneBot
Template repository for making clone-able telegram bots using [grammY](https://grammy.dev) 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:///CloneBot?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/setWebhook?url=https:///?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](https://BotFather.t.me/) 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
- [Aditya](https://xditya.me) for [this template repository](https://github.com/xditya/GrammyCloneBot).
- [SpEcHiDe](https://www.shrimadhavuk.me/) for [IDNWB](https://github.com/SpEcHiDe/IDNWB).
- [grammY](https://github.com/grammyjs/) for [grammY](https://grammy.dev)!