Skip to content

Instantly share code, notes, and snippets.

View Nirzak's full-sized avatar
:octocat:
I love Open-Source

Nirjas Jakilim Nirzak

:octocat:
I love Open-Source
View GitHub Profile
@Nirzak
Nirzak / readme.md
Created June 29, 2024 16:29 — forked from SanariSan/readme.md
Telegram HTTP bot API via CURL | Send text, photos, documents, etc.

Here are some examples on how to use Telegram bot api via CURL

Prerequisites

For getting messages in private chat with bot

  • Create a bot using @BotFather, get it's token
  • Start conversation with bot
  • Run following curl command
curl https://api.telegram.org/bot/getUpdates | grep -Po '"from":{"id":.+?,'