repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | --- |
| #2 | title: "📱 Telegram Bot" |
| #3 | --- |
| #4 | |
| #5 | ### 🖼️ Template Setup |
| #6 | |
| #7 | - Open the Telegram app and search for the `BotFather` user. |
| #8 | - Start a chat with BotFather and use the `/newbot` command to create a new bot. |
| #9 | - Follow the instructions to choose a name and username for your bot. |
| #10 | - Once the bot is created, BotFather will provide you with a unique token for your bot. |
| #11 | |
| #12 | <Tabs> |
| #13 | <Tab title="docker"> |
| #14 | ```bash |
| #15 | docker run --name telegram-bot -e OPENAI_API_KEY=sk-xxx -e TELEGRAM_BOT_TOKEN=<redacted> -p 8000:8000 embedchain/telegram-bot |
| #16 | ``` |
| #17 | |
| #18 | <Note> |
| #19 | If you wish to use **Docker**, you would need to host your bot on a server. |
| #20 | You can use [ngrok](https://ngrok.com/) to expose your localhost to the |
| #21 | internet and then set the webhook using the ngrok URL. |
| #22 | </Note> |
| #23 | |
| #24 | </Tab> |
| #25 | <Tab title="replit"> |
| #26 | <Card> |
| #27 | Fork <ins>**[this](https://replit.com/@taranjeetio/EC-Telegram-Bot-Template?v=1#README.md)**</ins> replit template. |
| #28 | </Card> |
| #29 | |
| #30 | - Set your `OPENAI_API_KEY` in Secrets. |
| #31 | - Set the unique token as `TELEGRAM_BOT_TOKEN` in Secrets. |
| #32 | |
| #33 | </Tab> |
| #34 | |
| #35 | </Tabs> |
| #36 | |
| #37 | - Click on `Run` in the replit container and a URL will get generated for your bot. |
| #38 | - Now set your webhook by running the following link in your browser: |
| #39 | |
| #40 | ```url |
| #41 | https://api.telegram.org/bot<Your_Telegram_Bot_Token>/setWebhook?url=<Replit_Generated_URL> |
| #42 | ``` |
| #43 | |
| #44 | - When you get a successful response in your browser, your bot is ready to be used. |
| #45 | |
| #46 | ### 🚀 Usage Instructions |
| #47 | |
| #48 | - Open your bot by searching for it using the bot name or bot username. |
| #49 | - Click on `Start` or type `/start` and follow the on screen instructions. |
| #50 | |
| #51 | 🎉 Happy Chatting! 🎉 |
| #52 |