Telegram Bot API
telegram · Company
Auto-generated OpenAPI schema
Authentication
Sample Requests
Use this method to add a new sticker to a set created by the bot. You **must** use exactly one of the fields *png\_sticker* or *tgs\_sticker*. Animated stickers can be added to animated sticker sets and only to them. Animated sticker sets can have up to 50 stickers. Static sticker sets can have up t
Hover any highlighted part to learn what it does
curl -X POST "https://api.apis.guru/v2/specs/telegram.org/5.0.0/addStickerToSet"
import requests
response = requests.post(
"https://api.apis.guru/v2/specs/telegram.org/5.0.0/addStickerToSet",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/telegram.org/5.0.0/addStickerToSet';
const response = await fetch(url, {
method: 'POST',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/telegram.org/5.0.0/addStickerToSet"
req, _ := http.NewRequest("POST", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/telegram.org/5.0.0/addStickerToSet")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/telegram.org/5.0.0/addStickerToSet";
$opts = ["http" => [
"method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Use this method to send answers to callback queries sent from [inline keyboards](/bots#inline-keyboards-and-on-the-fly-updating). The answer will be displayed to the user as a notification at the top of the chat screen or as an alert. On success, *True* is returned. Alternatively, the user can be r
Hover any highlighted part to learn what it does
curl -X POST "https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerCallbackQuery"
import requests
response = requests.post(
"https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerCallbackQuery",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerCallbackQuery';
const response = await fetch(url, {
method: 'POST',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerCallbackQuery"
req, _ := http.NewRequest("POST", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerCallbackQuery")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerCallbackQuery";
$opts = ["http" => [
"method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Use this method to send answers to an inline query. On success, *True* is returned. No more than **50** results per query are allowed.
Hover any highlighted part to learn what it does
curl -X POST "https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerInlineQuery"
import requests
response = requests.post(
"https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerInlineQuery",
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerInlineQuery';
const response = await fetch(url, {
method: 'POST',
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerInlineQuery"
req, _ := http.NewRequest("POST", targetURL, nil)
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerInlineQuery")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Post.new(uri)
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/telegram.org/5.0.0/answerInlineQuery";
$opts = ["http" => [
"method" => "POST",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with Telegram Bot API?
Telegram Bot API is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Telegram Bot API is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide