Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 646 Bytes

CONFIG_TELEGRAM_BOT.md

File metadata and controls

16 lines (14 loc) · 646 Bytes
  1. Create a bot

  2. Get the bot's API token from @BotFather

  3. Create a Group

  4. Create a Chat channel

  5. Edit Chat channel Link to a Group

  6. Get the ID of the chat

  7. Test send a message using the HTTP API: https://core.telegram.org/bots/api#sendmessage

curl -X POST \
        -H 'Content-Type: application/json' \
        -d '{"chat_id": "123456789", "text": "This is a test from curl", "disable_notification": true}' \
        https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/sendMessage