Bot API · Guides
Moving a bot from Telegram to Orbeo
Orbeo speaks the Telegram Bot API. Methods, update objects, error format and libraries are the same — you change the server address and the token.
What changes
| Telegram | Orbeo | |
|---|---|---|
| Server | api.telegram.org | orbeo.me/botapi |
| Token | @BotFather | Settings → My bots |
| Files | api.telegram.org/file/bot… | orbeo.me/botapi/file/bot… |
In your library
aiogram 3: AiohttpSession(api=TelegramAPIServer.from_base("https://orbeo.me/botapi")). python-telegram-bot:
app = (Application.builder().token(TOKEN)
.base_url("https://orbeo.me/botapi/bot")
.base_file_url("https://orbeo.me/botapi/file/bot").build())Telegraf:
new Telegraf(TOKEN, { telegram: { apiRoot: 'https://orbeo.me/botapi/' } });
One bot, both messengers
Create a second token in Orbeo and start both from one aiogram Dispatcher — handlers are shared:
TELEGRAM = TelegramAPIServer.from_base("https://api.telegram.org")
ORBEO = TelegramAPIServer.from_base("https://orbeo.me/botapi")
tg_bot = Bot(TG_TOKEN, session=AiohttpSession(api=TELEGRAM))
orbeo_bot = Bot(ORBEO_TOKEN, session=AiohttpSession(api=ORBEO))
# one Dispatcher, both bots
await dp.start_polling(tg_bot, orbeo_bot)
What works differently
sendLocationandsendVenuesend a map link.sendContactandsendDicesend text.sendMediaGroupmakes one album message.sendStickersends a PNG picture.
Not available yet
editMessageMedia, live location, stopPoll, getUserProfilePhotos, ban/restrict/promoteChatMember, setMessageReaction. If your bot calls them, catch the error and skip — the rest keeps working.
Checklist
- New token in Orbeo.
- Server address in the library.
- Channel posting: add the bot as a channel administrator.
- Webhook: set it again with the Orbeo token — https only.
- Stay within limits: 30 messages/s per bot, 1/s per direct chat, 20/min per group.
Full list of methods — Bot API reference. Starting from zero — a bot in Python.