Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 879 Bytes

BOT_SETUP.md

File metadata and controls

20 lines (16 loc) · 879 Bytes

🚀 Telegram Bot configuration guide


🤖 Step #1


Create a Telegram bot using BotFather

  • Contact the @BotFather bot to receive a list of Telegram chat commands.
  • Now use the /newbot command and wait for instructions to select a name and username. Upon successfully creating your bot, you’ll receive the bot's token.
  • Specify the BOT_TOKEN in .env file with your bot's token.

💬 Step #2


Telegram chat

  • Create a Telegram group chat
  • Add bot to created chat
  • Get the list of updates for your Bot https://api.telegram.org/bot/getUpdates (replace <YourBotToken> with the token of your bot)
  • Look for the "chat" object, it should look like this: "chat":{"id":<group_ID>,"title":""}
  • Specify the CHAT_ID parameter in .env file with your <group_ID>.