Chatbots
๐ฑ Telegram Bot
๐ผ๏ธ Template Setup
- Open the Telegram app and search for the
BotFather
user. - Start a chat with BotFather and use the
/newbot
command to create a new bot. - Follow the instructions to choose a name and username for your bot.
- Once the bot is created, BotFather will provide you with a unique token for your bot.
If you wish to use Docker, you would need to host your bot on a server. You can use ngrok to expose your localhost to the internet and then set the webhook using the ngrok URL.
- Click on
Run
in the replit container and a URL will get generated for your bot. - Now set your webhook by running the following link in your browser:
- When you get a successful response in your browser, your bot is ready to be used.
๐ Usage Instructions
- Open your bot by searching for it using the bot name or bot username.
- Click on
Start
or type/start
and follow the on screen instructions.
๐ Happy Chatting! ๐
Was this page helpful?