How to move a bot from Telegram to Reyta

The move takes minutes if your library lets you set a custom base address. Below: the order of operations, and the three places people usually trip.

24 November 2026

To move a bot from Telegram to Reyta, get a new token from BotMother and replace the base address api.telegram.org with api.reyta.uz in your code — the Bot API's methods, parameters and response format match, so neither your bot logic nor your library needs changing. Three things do need a fix: the webhook URL, any stored file_id values (they belong to the original platform and are invalid on the new one), and hard-coded t.me links.

The steps

  • Create the bot in BotMother and get a token. It is a separate token: a Telegram token does not work on Reyta and vice versa.
  • Point the base address at api.reyta.uz in your configuration. The path scheme is unchanged: /bot<token>/<method>.
  • Start the bot and call getMe. If it answers, the transport is right and the rest is your logic.
  • If you use a webhook, call setWebhook again on the new host. A webhook belongs to the platform, not to your code.
  • Run your main flows: a message, a keyboard, media, inline mode. Faster than finding a difference in production.

The three places people trip

Stored file_id values

A file_id is a reference to a file inside one platform, not a universal identifier. If your bot keeps image file_ids in a database and re-sends them, they will stop resolving after the move. The fix is to upload once more: send the files to Reyta a single time, store the new identifiers, and re-sending by file_id works as before.

t.me links

Buttons and message text often carry hard-coded addresses like t.me/name. On Reyta those point somewhere else. Grepping the code for t.me usually finds all of them in a minute.

Methods that are only partly implemented

Compatibility is high but not total, and the reference marks the exceptions honestly: a method carries a note when part of it behaves differently or does not work at all. If your bot leans on an unusual method, read its page before the move rather than after.

Can one bot run on both platforms at once

Yes, and for a first migration it is the calmest route. The bot's logic is the same and only the base address and token differ, so run two instances with different configuration, or move the address into an environment variable. That lets you verify everything with real users without taking the working bot down.

Questions and answers

Do I need to change my bot library?

No, as long as the library lets you set a custom base URL — nearly all the popular ones do. Your logic, handlers and types stay the same.

Do the bot's subscribers and history transfer?

No. These are two independent platforms and users appear on the new one from scratch. The code moves; the audience does not.

Does long polling work, or only webhooks?

Both work: getUpdates with long polling, and setWebhook. The choice is the same as before and depends on whether your bot has a public address.