Skip to content

Instantly share code, notes, and snippets.

View MadaShindeInai's full-sized avatar
:electron:
Working from home

Sergei MadaShindeInai

:electron:
Working from home
View GitHub Profile
@MadaShindeInai
MadaShindeInai / readme.md
Last active March 12, 2025 21:40 — forked from dideler/bot.rb
Sending a notification message to Telegram using its HTTP API via cURL
  1. Create a bot
  2. Get the bot's API token from @BotFather
  3. Add your bot to the chat you'll be sending messages to
  4. Get the ID of the chat
    a. Fetch bot updates and look for the chat id:
    curl https://api.telegram.org/bot$TELEGRAM_BOT_TOKEN/getUpdates | -r '.result[].message.chat.id'
    b.