Build chat bots on Reyta over a simple HTTPS API. It mirrors the Telegram Bot API, so the methods, parameters, and JSON responses you already know work here unchanged – and an existing bot moves over by changing one line.
Introduction
The Bot API is a set of HTTPS endpoints. Each call is the base URL, then your bot token, then a method name. You send parameters; you get back JSON. There is nothing else to install on the server side – any language with an HTTP client can talk to it.
Endpoint shape
https://api.reyta.uz/bot<token>/METHOD_NAME
Every response has the same envelope: a boolean ok, and either a result on success or an error_code plus a human-readable description on failure.
That is the whole model: swap getMe for any method below, add its parameters, and read the JSON back.
Authorization
The token goes directly in the request path – there is no separate header or OAuth step. Keep it secret: anyone who has it can control the bot. If it leaks, revoke and reissue it in BotMother.
Verify a token
curl"https://api.reyta.uz/bot<token>/getMe"
Making requests
Send parameters as a query string, form-encoded body (application/x-www-form-urlencoded), or JSON (application/json). To upload a file, use multipart/form-data. Both GET and POST work for most methods.
Request with JSON body
curl"https://api.reyta.uz/bot<token>/sendMessage"\ -H"Content-Type: application/json"\ -d'{"chat_id": 987654321, "text": "Hello from Reyta"}'
Migrate from Telegram
Because the surface matches the Telegram Bot API, migration is not a rewrite – it is a configuration change. Point your library’s API root at Reyta and use a token from BotMother. Your method calls, update handling, and types stay exactly the same. Here are the one-line changes for popular libraries (grammY and Telegraf are verified against this endpoint).
To message a user or chat you need its chat_id. The simplest way to get one: send your bot a message, then read it back with getUpdates – the chat.id is in the response. Then:
sendMessage
curl"https://api.reyta.uz/bot<token>/sendMessage"\ -d"chat_id=987654321"\ -d"text=Salom! My bot is live on Reyta."\ -d"parse_mode=HTML"
Add an inline keyboard, reply to a message, or attach media with the parameters listed under each method below.
Getting updates
Receive incoming events by long polling or webhook. Pick one – they are mutually exclusive.
POST/bot<token>/getUpdates→ Array of Update
Poll for new updates using long polling. Returns an array of Update objects.
Parameter
Type
Required
Description
offset
Integer
Optional
Identifier of the first update to return. Set to last received update_id + 1 to confirm.
limit
Integer
Optional
Number of updates to retrieve, 1–100. Default 100.
timeout
Integer
Optional
Long-polling timeout in seconds. 0 for short polling (testing only).
allowed_updates
Array of String
Optional
List of update types to receive, e.g. ["message","callback_query"].
{"ok":true,"result":true,"description":"Webhook was set"}
POST/bot<token>/deleteWebhook→ True
Remove the webhook and switch back to getUpdates.
Parameter
Type
Required
Description
drop_pending_updates
Boolean
Optional
Discard everything queued before this call.
GET/bot<token>/getWebhookInfo→ WebhookInfo
Current webhook status, pending update count, and last error.
Sending messages
Deliver text, media, and everyday content to any chat the bot can reach.
POST/bot<token>/sendMessage→ MessagePartial support
Send a text message. Supports Markdown/HTML formatting and inline keyboards.
Reyta does not generate link previews, so a message never carries one. link_preview_options is accepted: is_disabled and show_above_text are stored on the message, while url, prefer_small_media and prefer_large_media describe a preview that does not exist and are ignored rather than refused.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Unique chat identifier or @username of a channel.
text
String
Yes
Message text, 1–4096 characters.
parse_mode
String
Optional
"MarkdownV2" or "HTML" for entity formatting.
reply_markup
Object
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
disable_notification
Boolean
Optional
Send silently, without a notification sound.
link_preview_options
LinkPreviewOptions
Optional
JSON object. is_disabled suppresses the link preview and show_above_text puts it above the text; both are stored on the message. The rendering fields (url, prefer_small_media, prefer_large_media) are ignored — see the note on this method.
disable_web_page_preview
Boolean
Optional
The older spelling of link_preview_options.is_disabled. Still accepted.
entities
Array of MessageEntity
Optional
JSON array of already-parsed entities. It can be given instead of parse_mode, and then it wins: the text is taken literally and the entities describe it.
reply_parameters
ReplyParameters
Optional
JSON object describing the reply: message_id, and optionally quote, quote_parse_mode / quote_entities and quote_position. Preferred over the deprecated reply_to_message_id. reply_parameters.chat_id (a reply to a message in another chat) is refused with 400 rather than sent as a non-reply.
message_effect_id
String
Optional
Identifier of the effect played once when the message arrives.
Request
curl"https://api.reyta.uz/bot<token>/sendMessage"\ -d"chat_id=987654321"\ -d"text=Salom! Reyta Bot API is live."\ -d"parse_mode=HTML"
Response
{"ok":true,"result":{"message_id":43,"chat":{"id":987654321,"type":"private"},"date":1783900050,"text":"Salom! Reyta Bot API is live."}}
POST/bot<token>/sendPhoto→ Message
Send a photo by file_id, HTTP URL, or multipart upload.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat.
photo
String or InputFile
Yes
file_id, an HTTPS URL, or an uploaded file.
caption
String
Optional
Caption, 0–1024 characters.
show_caption_above_media
Boolean
Optional
Put the caption above the photo instead of below it.
caption_entities
Array of MessageEntity
Optional
JSON array of already-parsed entities for the caption, instead of parse_mode. Accepted on every caption-bearing send method and on editMessageCaption and copyMessage.
Send a general file, up to the configured size limit.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
document
InputFile or String
Yes
The file: a file_id, an HTTPS URL, or a multipart upload.
caption
String
Optional
Caption, 0-1024 characters.
parse_mode
String
Optional
Markdown, MarkdownV2 or HTML.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
thumbnail
InputFile
Optional
Cover image, uploaded as a multipart part. The old name thumb is also accepted.
The video: a file_id, an HTTPS URL, or a multipart upload.
caption
String
Optional
Caption, 0-1024 characters.
parse_mode
String
Optional
Markdown, MarkdownV2 or HTML.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
duration
Integer
Optional
Duration in seconds.
width
Integer
Optional
Width in pixels.
height
Integer
Optional
Height in pixels.
supports_streaming
Boolean
Optional
Mark the video as suitable for streaming.
has_spoiler
Boolean
Optional
Cover the media with a spoiler animation.
thumbnail
InputFile
Optional
Cover image, uploaded as a multipart part. The old name thumb is also accepted.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
POST/bot<token>/sendAnimation→ Message
Send a GIF or H.264/MPEG-4 animation without sound.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
animation
InputFile or String
Yes
The animation: a file_id, an HTTPS URL, or a multipart upload.
caption
String
Optional
Caption, 0-1024 characters.
parse_mode
String
Optional
Markdown, MarkdownV2 or HTML.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
duration
Integer
Optional
Duration in seconds.
width
Integer
Optional
Width in pixels.
height
Integer
Optional
Height in pixels.
has_spoiler
Boolean
Optional
Cover the media with a spoiler animation.
thumbnail
InputFile
Optional
Cover image, uploaded as a multipart part. The old name thumb is also accepted.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
POST/bot<token>/sendAudio→ Message
Send an audio file to be shown in the music player.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
audio
InputFile or String
Yes
The audio: a file_id, an HTTPS URL, or a multipart upload.
caption
String
Optional
Caption, 0-1024 characters.
parse_mode
String
Optional
Markdown, MarkdownV2 or HTML.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
duration
Integer
Optional
Duration in seconds.
performer
String
Optional
Audio performer.
title
String
Optional
Title.
thumbnail
InputFile
Optional
Cover image, uploaded as a multipart part. The old name thumb is also accepted.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
POST/bot<token>/sendVoice→ Message
Send a voice message (OGG/OPUS).
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
voice
InputFile or String
Yes
The voice message: a file_id, an HTTPS URL, or a multipart upload.
caption
String
Optional
Caption, 0-1024 characters.
parse_mode
String
Optional
Markdown, MarkdownV2 or HTML.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
duration
Integer
Optional
Duration in seconds.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
POST/bot<token>/sendVideoNote→ Message
Send a rounded, square video note.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
video_note
InputFile or String
Yes
The video note: a file_id or a multipart upload.
length
Integer
Optional
Side length of the square video note.
duration
Integer
Optional
Duration in seconds.
thumbnail
InputFile
Optional
Cover image, uploaded as a multipart part. The old name thumb is also accepted.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
POST/bot<token>/sendMediaGroup→ Array of Message
Send a group of photos/videos/documents as an album.
Unique identifier of the target chat, or @channelusername.
latitude
Float
Yes
Latitude of the location.
longitude
Float
Yes
Longitude of the location.
live_period
Integer
Optional
Seconds the location stays live, 60-86400. Omit for a one-shot location.
heading
Integer
Optional
Direction the user is moving, 1-360 degrees.
proximity_alert_radius
Integer
Optional
Distance in metres for proximity alerts about another member.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
reply_markup
Object
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
horizontal_accuracy
Float
Optional
Radius of uncertainty in metres, 0-1500. Clients draw it as the circle around the point.
POST/bot<token>/sendVenue→ Message
Send information about a venue.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
latitude
Float
Yes
Latitude of the location.
longitude
Float
Yes
Longitude of the location.
title
String
Yes
Title.
address
String
Yes
Street address of the venue.
foursquare_id
String
Optional
Foursquare identifier of the venue.
foursquare_type
String
Optional
Foursquare category of the venue.
google_place_id
String
Optional
Google Places identifier of the venue.
google_place_type
String
Optional
Google Places category of the venue.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
reply_markup
Object
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
POST/bot<token>/sendContact→ Message
Send a phone contact.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
phone_number
String
Yes
Contact's phone number.
first_name
String
Yes
Contact's first name.
last_name
String
Optional
Contact's last name.
vcard
String
Optional
Additional contact data in vCard format.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
reply_markup
Object
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
POST/bot<token>/sendPoll→ Message
Send a poll. The bot receives poll_answer for each vote in a non-anonymous poll it sent, and poll when it stops one.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
question
String
Yes
Poll question.
options
Array of String
Yes
JSON array of answer options.
is_anonymous
Boolean
Optional
Hide who voted. True by default; send false so the voters can be listed.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
type
String
Optional
regular (default) or quiz.
allows_multiple_answers
Boolean
Optional
Let a voter pick several options. Ignored for a quiz.
correct_option_id
Integer
Optional
0-based index of the right answer. Required for a quiz.
explanation
String
Optional
Shown after a quiz is answered. Never sent before that — it is the answer key.
open_period
Integer
Optional
Seconds the poll stays open, 5-600.
close_date
Integer
Optional
Unix time when the poll closes by itself.
is_closed
Boolean
Optional
Send the poll already closed, for previews.
reply_markup
Object
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
question_parse_mode
String
Optional
Formatting of the question: HTML, Markdown or MarkdownV2. The markup is parsed and removed — the poll store keeps the question as plain text, so the bold is lost but the asterisks are not left on screen.
explanation_parse_mode
String
Optional
Formatting of a quiz explanation. Entities are kept for the explanation, unlike for the question.
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
POST/bot<token>/sendChatAction→ True
Show a "typing…" or "uploading…" status.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
action
String
Yes
Action to show: typing, upload_photo, record_video and so on.
POST/bot<token>/sendSticker→ Message
Send a static, animated, or video sticker.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
sticker
String
Yes
A file_id of a sticker that already exists on the server – take it from getStickerSet or from an incoming update.
reply_to_message_id
Integer
Optional
Send the sticker as a reply to this message.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
Copy several messages at once without a link to the original.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
from_chat_id
Integer or String
Yes
Chat the message is taken from.
message_ids
Array of Integer
Yes
JSON array of message ids.
remove_caption
Boolean
Optional
Copy without the original caption.
POST/bot<token>/forwardMessages→ Array of MessageId
Forward several messages at once, keeping the original author.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
from_chat_id
Integer or String
Yes
Chat the message is taken from.
message_ids
Array of Integer
Yes
JSON array of message ids.
disable_notification
Boolean
Optional
Deliver silently, without a notification sound.
protect_content
Boolean
Optional
Forbid forwarding and saving of the sent message.
reply_to_message_id
Integer
Optional
Send as a reply to this message.
message_thread_id
Integer
Optional
Forum topic the message belongs to.
Updating & deleting
Edit or delete messages the bot already sent. Editing by chat_id + message_id works everywhere; editing an inline message by inline_message_id is not supported yet.
POST/bot<token>/editMessageText→ Message or True
Edit the text of a sent or inline message.
Parameter
Type
Required
Description
text
String
Yes
New text of the message.
chat_id
Integer or String
Optional
Target chat. Required unless inline_message_id is used.
message_id
Integer
Optional
Message to edit. Required unless inline_message_id is used.
parse_mode
String
Optional
Formatting: HTML, Markdown, or MarkdownV2.
inline_message_id
String
Optional
Identifier of an inline message, from chosen_inline_result. Use instead of chat_id + message_id; sending both is an error. The reply is then true rather than a Message.
POST/bot<token>/editMessageCaption→ Message or True
Edit the caption of a media message.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_id
Integer
Yes
Target message.
inline_message_id
String
Optional
Identifier of an inline message.
caption
String
Optional
Caption, 0-1024 characters.
parse_mode
String
Optional
Markdown, MarkdownV2 or HTML.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
POST/bot<token>/editMessageMedia→ Message or True
Replace the media of a message. Accepts a file_id, an http(s) URL or an attach:// upload; the InputMedia caption replaces the message caption.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_id
Integer
Yes
Target message.
media
Array of InputMedia
Yes
JSON array describing the album items.
inline_message_id
String
Optional
Identifier of an inline message.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
POST/bot<token>/editMessageReplyMarkup→ Message or True
Edit only the inline keyboard of a message.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_id
Integer
Yes
Target message.
inline_message_id
String
Optional
Identifier of an inline message.
reply_markup
InlineKeyboardMarkup
Optional
JSON keyboard: inline_keyboard, keyboard, remove_keyboard or force_reply. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400 rather than quietly dropped.
POST/bot<token>/editMessageLiveLocation→ Message or True
Move an active live location.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_id
Integer
Yes
Target message.
inline_message_id
String
Optional
Identifier of an inline message.
latitude
Float
Optional
Latitude of the location.
longitude
Float
Optional
Longitude of the location.
live_period
Integer
Optional
How long the location stays live, in seconds.
heading
Integer
Optional
Direction the user is moving in, 1-360 degrees.
proximity_alert_radius
Integer
Optional
Distance in metres for proximity alerts.
POST/bot<token>/deleteMessage→ True
Delete a message the bot sent, or any message where it is admin.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Unique identifier of the target chat, or @channelusername.
POST/bot<token>/stopMessageLiveLocation→ Message or True
Stop updating an active live location before its period expires.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_id
Integer
Yes
Target message.
inline_message_id
String
Optional
Identifier of an inline message.
POST/bot<token>/setMessageReaction→ True
Set or clear the bot's reaction on a message.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_id
Integer
Yes
Target message.
is_big
Boolean
Optional
Play a big reaction animation.
reaction
Array of ReactionType
Optional
JSON array of reactions; an empty array clears them.
POST/bot<token>/stopPoll→ Poll
Stop an active poll the bot sent.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_id
Integer
Yes
Target message.
reply_markup
Object
Optional
JSON keyboard to leave on the message, usually swapping Vote for See results. Button types this server has no backend for — web_app, login_url, pay, callback_game, switch_inline_query_chosen_chat, request_poll, request_user, request_chat — are refused with 400.
POST/bot<token>/answerInlineQuery→ TruePartial support
Answer an inline query with a list of results.
Every result type is served except game: article, photo, gif, mpeg4_gif, video, audio, voice, document, sticker, location, venue and contact, each in both the URL and the cached (*_file_id) flavour. Reyta has no games platform at all — sendGame, setGameScore and getGameHighScores do not exist — so an InlineQueryResultGame names nothing and is refused with 400.
GET/bot<token>/getUserChatBoosts→ UserChatBoostsPartial support
List the boosts a user has added to a chat. Requires administrator rights in the chat.
Reyta keeps no boost accounting: Premium is universal here, so there is nothing a boost buys and nobody boosts. The answer is a well-formed, empty UserChatBoosts rather than an error — which is the true answer, none. The method reads the real backend, so it starts reporting boosts the day boost accounting exists.
Lift a ban so the user can rejoin via an invite link.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
user_id
Integer
Yes
Target user.
only_if_banned
Boolean
Optional
Do nothing when the user is not banned.
POST/bot<token>/restrictChatMember→ True
Restrict what a supergroup member is allowed to do.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Unique identifier of the target chat, or @channelusername.
user_id
Integer
Yes
Unique identifier of the target user.
permissions
ChatPermissions
Yes
The object is the COMPLETE new permission set, not a patch: a permission that is not passed as true is a restriction. That is what "pass True for all permissions to lift restrictions" means. Until 19 Oct 2026 this server read an absent key as granted, so a partial object quietly handed over everything it did not mention.
use_independent_chat_permissions
Boolean
Optional
Pass True to take the permissions exactly as given. By default can_send_other_messages and can_add_web_page_previews imply the text and media permissions, and can_send_polls implies can_send_messages.
POST/bot<token>/promoteChatMember→ True
Promote or demote a member by setting administrator rights.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Unique identifier of the target chat, or @channelusername.
user_id
Integer
Yes
Unique identifier of the target user.
can_manage_chat
Boolean
Optional
Grant the corresponding administrator right. Each right is a separate boolean parameter.
Set a custom title for an administrator the bot promoted.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
user_id
Integer
Yes
Target user.
custom_title
String
Yes
Title shown next to the administrator, 0-16 characters.
POST/bot<token>/setChatPermissions→ True
Set the default permissions for all members of a supergroup.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
permissions
ChatPermissions
Yes
The object is the COMPLETE new permission set, not a patch: a permission that is not passed as true is a restriction. That is what "pass True for all permissions to lift restrictions" means. Until 19 Oct 2026 this server read an absent key as granted, so a partial object quietly handed over everything it did not mention.
The bot's own profile: name, descriptions, command list and default administrator rights. Each of these is per-language — pass language_code to set a localized value, or omit it for the default.
GET/bot<token>/getMe→ User
Basic information about the bot. A quick way to verify your token.
POST/bot<token>/setMyCommands→ True
Set the bot's list of commands.
Parameter
Type
Required
Description
commands
Array of BotCommand
Yes
JSON array of commands, 0-100 entries.
scope
BotCommandScope
Optional
Where the commands apply. Only the default scope is honoured today.
language_code
String
Optional
Two-letter language code the commands apply to.
Request
curl"https://api.reyta.uz/bot<token>/setMyCommands"\ -d'commands=[{"command":"start","description":"Begin"},{"command":"help","description":"How it works"}]'\ -d'scope={"type":"all_private_chats"}'
Response
{"ok":true,"result":true}
GET/bot<token>/getMyCommands→ Array of BotCommand
Current list of the bot's commands.
Parameter
Type
Required
Description
scope
BotCommandScope
Optional
JSON scope: default, all_private_chats, all_group_chats, all_chat_administrators, chat, chat_administrators or chat_member.
language_code
String
Optional
Two-letter language code; empty sets the default.
POST/bot<token>/setMyName→ True
Set the bot's name.
Parameter
Type
Required
Description
name
String
Optional
Name.
language_code
String
Optional
Two-letter language code; empty sets the default.
GET/bot<token>/getMyName→ BotName
Current bot name.
Parameter
Type
Required
Description
language_code
String
Optional
Two-letter language code; empty sets the default.
POST/bot<token>/setMyDescription→ True
Set the bot's description.
Parameter
Type
Required
Description
description
String
Optional
Description text.
language_code
String
Optional
Two-letter language code; empty sets the default.
POST/bot<token>/setChatMenuButton→ True
Change the bot's menu button in a chat.
Parameter
Type
Required
Description
menu_button
MenuButton
Optional
JSON menu button: default or commands.
chat_id
Integer or String
Optional
Target chat: numeric id or @username.
POST/bot<token>/logOut→ True
Same release as close: the long-poll slot and this instance's webhook delivery are given up. The token is not revoked — that lives in @BotMother.
POST/bot<token>/deleteMyCommands→ True
Delete the bot's command list for the given scope and language.
Parameter
Type
Required
Description
scope
BotCommandScope
Optional
JSON scope: default, all_private_chats, all_group_chats, all_chat_administrators, chat, chat_administrators or chat_member.
language_code
String
Optional
Two-letter language code; empty sets the default.
GET/bot<token>/getMyDescription→ BotDescription
Read the bot's description shown on an empty chat screen.
Parameter
Type
Required
Description
language_code
String
Optional
Two-letter language code; empty sets the default.
POST/bot<token>/setMyShortDescription→ True
Set the short description shown on the bot's profile page.
Read the bot's menu button for a chat, or the default one.
Parameter
Type
Required
Description
chat_id
Integer or String
Optional
Target chat: numeric id or @username.
POST/bot<token>/setMyProfilePhoto→ True
Set the bot's own profile photo.
Parameter
Type
Required
Description
photo
InputProfilePhoto
Yes
JSON object. Either {"type":"static","photo":"attach://<field>"} for a JPG, or {"type":"animated","animation":"attach://<field>","main_frame_timestamp":0.0} for an MPEG4. A profile photo cannot be reused, so it must be uploaded in this request — a file_id is not accepted.
Set a user's emoji status using a custom emoji the bot may use.
Parameter
Type
Required
Description
user_id
Integer
Yes
Target user.
emoji_status_custom_emoji_id
String
Optional
Custom emoji to show as the user's status.
emoji_status_expiration_date
Integer
Optional
Unix time when the emoji status expires.
POST/bot<token>/close→ True
Release the bot from this server before running it elsewhere: the long-poll slot is freed at once, so a bot restarting in another process does not get 409 until the lease expires, and webhook delivery from this instance stops. The webhook itself is kept — delete it first if the bot must not be reached again.
Files & stickers
Download files the bot can see, and author sticker sets. A set created through the API is owned by the bot that created it.
GET/bot<token>/getFile→ File
Prepare a file for download and return a File with its path.
Parameter
Type
Required
Description
file_id
String
Yes
Identifier of the file — including sticker file_ids from getStickerSet. The response contains a file_path to download from /file/bot<token>/<file_path>.
GET/bot<token>/getCustomEmojiStickers→ Array of Sticker
Information about custom emoji stickers by id.
Parameter
Type
Required
Description
custom_emoji_ids
Array of String
Yes
JSON array of custom emoji ids.
POST/bot<token>/createNewStickerSet→ True
Create a new sticker set owned by a user.
Parameter
Type
Required
Description
user_id
Integer
Yes
The user who owns the set. The creating bot keeps the right to edit it.
name
String
Yes
Short name of the set, 5-64 characters: a letter first, then letters, digits and underscores.
title
String
Yes
Set title, 1-64 characters.
stickers
Array of InputSticker
Yes
JSON array, at most 50 items. Each item needs sticker (a file_id from uploadStickerFile, or attach://<field> naming a part of this request), format and emoji_list; keywords and mask_position are optional.
sticker_type
String
Optional
regular (default), mask or custom_emoji.
needs_repainting
Boolean
Optional
For a custom_emoji set only: its stickers are recoloured to match the text or context they appear in. Passing it for any other sticker_type is an error.
Move a sticker to a different position in its set.
Parameter
Type
Required
Description
sticker
String
Yes
file_id of the sticker.
position
Integer
Yes
Zero-based position in the set.
POST/bot<token>/setStickerEmojiList→ True
Replace the emoji associated with a sticker.
Parameter
Type
Required
Description
sticker
String
Yes
file_id of the sticker.
emoji_list
Array of String
Yes
JSON array of 1-20 emoji.
POST/bot<token>/setStickerKeywords→ True
Replace the search keywords of a sticker.
Parameter
Type
Required
Description
sticker
String
Yes
file_id of the sticker.
keywords
Array of String
Optional
JSON array of search keywords.
POST/bot<token>/setStickerMaskPosition→ True
Change where a mask sticker is placed on a face.
Parameter
Type
Required
Description
sticker
String
Yes
file_id of the sticker.
mask_position
MaskPosition
Optional
JSON object: point (forehead, eyes, mouth, chin), x_shift, y_shift, scale.
POST/bot<token>/uploadStickerFile→ File
Upload a sticker file for later use in createNewStickerSet or addStickerToSet. The file is validated before it is stored — format, dimensions, TGS frame rate and duration, WebM codec — and a rejected file returns 400 naming the rule it broke.
Parameter
Type
Required
Description
user_id
Integer
Yes
The user the upload is made for. In Reyta the calling bot owns every set it creates, so this only identifies the requester.
sticker
InputFile
Yes
The sticker file, uploaded as multipart/form-data.
sticker_format
String
Yes
One of static (.webp), animated (.tgs) or video (.webm).
Add a sticker to a set the bot created. Adding a sticker that is already in the set changes nothing and answers true, so a repeated call is safe.
Parameter
Type
Required
Description
user_id
Integer
Yes
Identifies the requester.
name
String
Yes
Short name of the set.
sticker
InputSticker
Yes
JSON object with sticker (file_id or attach://<field>), format and emoji_list.
POST/bot<token>/replaceStickerInSet→ True
Replace a sticker in a set with a new one. The replacement takes the replaced sticker's position, and a rejected replacement leaves the set untouched.
Parameter
Type
Required
Description
user_id
Integer
Yes
Identifies the requester.
name
String
Yes
Short name of the set.
old_sticker
String
Yes
file_id of the sticker being replaced.
sticker
InputSticker
Yes
The replacement, same shape as in addStickerToSet.
POST/bot<token>/setStickerSetThumbnail→ True
Set the thumbnail of a sticker set. Takes an uploaded 100x100 image (attach://), or a file_id — a sticker from the same set works as the cover.
Parameter
Type
Required
Description
name
String
Yes
Short name of the set.
user_id
Integer
Yes
Identifies the requester.
thumbnail
String
Optional
An uploaded image as attach://<field> (exactly 100x100, up to 128 KB static or 32 KB animated/video), or a file_id — a sticker from the same set is accepted as the cover. Omit it to drop the thumbnail and fall back to the first sticker.
format
String
Yes
static for a WEBP/PNG image, animated for a TGS, video for a WEBM. It is checked against the uploaded bytes, so a mislabelled file is refused.
Id of a custom emoji from the set. Both the decimal document id and the file_unique_id printed by getStickerSet are accepted. Omit to clear.
Forum topics
Manage topics in a forum supergroup. Every method here needs a supergroup with forum mode on — a channel or a basic group is rejected.
POST/bot<token>/createForumTopic→ ForumTopic
Create a topic in a forum supergroup.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Unique identifier of the target chat, or @channelusername.
name
String
Yes
Topic name, up to 128 characters.
icon_color
Integer
Optional
Icon colour as an RGB integer.
icon_custom_emoji_id
String
Optional
Custom emoji used as the topic icon.
POST/bot<token>/editForumTopic→ True
Edit name/icon of a forum topic.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_thread_id
Integer
Yes
Forum topic the message belongs to.
name
String
Optional
Name.
icon_custom_emoji_id
String
Optional
Custom emoji shown as the topic icon.
POST/bot<token>/deleteForumTopic→ True
Delete a forum topic along with its messages.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_thread_id
Integer
Yes
Forum topic the message belongs to.
POST/bot<token>/closeForumTopic→ True
Close a forum topic so no new messages can be posted.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_thread_id
Integer
Yes
Forum topic the message belongs to.
POST/bot<token>/reopenForumTopic→ True
Reopen a closed forum topic.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_thread_id
Integer
Yes
Forum topic the message belongs to.
POST/bot<token>/unpinAllForumTopicMessages→ True
Unpin every pinned message in a forum topic.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
message_thread_id
Integer
Yes
Forum topic the message belongs to.
POST/bot<token>/editGeneralForumTopic→ True
Rename the General topic of a forum.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
name
String
Yes
Name.
POST/bot<token>/closeGeneralForumTopic→ True
Close the General topic of a forum.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
POST/bot<token>/reopenGeneralForumTopic→ True
Reopen the General topic of a forum.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
POST/bot<token>/hideGeneralForumTopic→ True
Hide the General topic from the forum's topic list.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
POST/bot<token>/unhideGeneralForumTopic→ True
Show the General topic again.
Parameter
Type
Required
Description
chat_id
Integer or String
Yes
Target chat: numeric id or @username.
GET/bot<token>/getForumTopicIconStickers→ Array of StickerPartial support
List the stickers available as forum topic icons.
Reyta ships no curated topic-icon pack. An operator can point the server at a custom-emoji set (ForumTopicIconSet in botapid.yaml) and it is served like any other pack; until then the method returns an empty array, and clients show no custom-icon picker.