- Create a bot
- Get the bot's API token from @BotFather
- Add your bot to the chat you'll be sending messages to
- Get the ID of the chat
a. Fetch bot updates and look for the chat id:b.curl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates | -r '.result[].message.chat.id'
OlderNewer