Skip to content

Instantly share code, notes, and snippets.

pheix /
Created April 10, 2023 07:03 — forked from SanariSan/
Telegram HTTP bot API via CURL | Send text, photos, documents, etc.

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


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 | grep -Po '"from":{"id":.+?,'