Orbeo Bot API
Orbeo’s Bot API is compatible with Telegram’s. Your aiogram, python-telegram-bot, Telegraf or plain curl code works — you change only the server address.
- Create a bot
- Addresses
- First requests with curl
- Libraries
- chat_id
- Formatting
- Buttons
- Updates
- Methods
- Limits
- Examples and help
Guides
Create a bot
- In Orbeo open Settings → My bots → Create a bot.
- The handle must end with
bot, for exampleweather_bot. - The token is shown once. Lost it? Tap Issue a new token — the old one stops working.
- To post in a channel: channel → Administrators → Add a bot.
Addresses
| Telegram | Orbeo | |
|---|---|---|
| Methods | api.telegram.org/bot<TOKEN>/<method> | orbeo.me/botapi/bot<TOKEN>/<method> |
| Files | api.telegram.org/file/bot<TOKEN>/<path> | orbeo.me/botapi/file/bot<TOKEN>/<path> |
| Token | @BotFather | Settings → My bots |
GET and POST both work; parameters as JSON, form, multipart or query string. Responses are {"ok":true,"result":…} or {"ok":false,"error_code":…,"description":…}, exactly like Telegram.
First requests with curl
T=123:yourtoken
curl https://orbeo.me/botapi/bot$T/getMe
curl "https://orbeo.me/botapi/bot$T/getUpdates?timeout=30"
curl -X POST https://orbeo.me/botapi/bot$T/sendMessage \
-H 'Content-Type: application/json' \
-d '{"chat_id":"@mychannel","text":"<b>Hello</b> from API","parse_mode":"HTML"}'
curl --form-string chat_id=@mychannel -F photo=@pic.jpg \
https://orbeo.me/botapi/bot$T/sendPhoto
Libraries
Python:
# aiogram 3
from aiogram import Bot
from aiogram.client.session.aiohttp import AiohttpSession
from aiogram.client.telegram import TelegramAPIServer
bot = Bot(TOKEN, session=AiohttpSession(
api=TelegramAPIServer.from_base("https://orbeo.me/botapi")))
# python-telegram-bot 21+
app = (Application.builder().token(TOKEN)
.base_url("https://orbeo.me/botapi/bot")
.base_file_url("https://orbeo.me/botapi/file/bot").build())Node.js:
// Telegraf — the trailing slash is required
new Telegraf(TOKEN, { telegram: { apiRoot: 'https://orbeo.me/botapi/' } });
// node-telegram-bot-api
new TelegramBot(TOKEN, { polling: true, baseApiUrl: 'https://orbeo.me/botapi' });
chat_id
- Direct messages:
chat.idfrom the update (the person’s id). - Groups and channels:
"@handle"or the negative number from an update.
Formatting
parse_mode: HTML (<b> <i> <u> <s> <code> <pre> <a href> <tg-spoiler> <blockquote>), MarkdownV2, Markdown, or entities.
Buttons
{"inline_keyboard": [[
{"text": "Open", "url": "https://orbeo.me"},
{"text": "Like", "callback_data": "like"}
]]}A callback_data press arrives as a callback_query update — answer it with answerCallbackQuery. Inline mode (inline_query, answerInlineQuery) works too.
Updates
getUpdates— long polling up to 50 s; one poller per bot (a second one gets 409).setWebhook— https only, with theX-Telegram-Bot-Api-Secret-Tokenheader. Replying with{"method": …}in the webhook response works.- Kinds:
message,edited_message,channel_post,edited_channel_post,callback_query,inline_query,chosen_inline_result,my_chat_member,chat_member. - Updates are kept for 24 hours.
Methods
Working: getMe, getUpdates, setWebhook, deleteWebhook, getWebhookInfo, sendMessage, forwardMessage(s), copyMessage(s), sendPhoto, sendVideo, sendAnimation, sendAudio, sendVoice, sendVideoNote, sendDocument, sendSticker, sendMediaGroup, sendPoll (including quizzes), sendLocation, sendVenue, sendContact, sendDice, sendChatAction, editMessageText, editMessageCaption, editMessageReplyMarkup, deleteMessage(s), answerCallbackQuery, answerInlineQuery, set/get/deleteMyCommands, set/getMyName, set/getMyDescription, set/getMyShortDescription, getChat, getChatMember, getChatMemberCount, getChatAdministrators, leaveChat, getFile, pinChatMessage, unpinChatMessage, unpinAllChatMessages, logOut, close.
Different from Telegram: sendLocation and sendVenue send a map link; sendContact and sendDice send text; sendMediaGroup makes one album message; sendSticker sends a PNG picture.
Not yet: editMessageMedia, live location, stopPoll, getUserProfilePhotos, ban/restrict/promoteChatMember, setMessageReaction.
Limits
- 30 messages/s per bot, 1/s per direct chat, 20/min per group — above that you get
429withretry_after. - Text up to 4096 characters, captions up to 1024, files up to 50 MB.
- Up to 20 bots per account, 5 new per day.
Examples and help
Ready-made bots — echo bot, aiogram and Telegraf starters, a Telegram→Orbeo channel mirror, an AI autoposter — are in the @orbeodev channel inside Orbeo. Questions: @orbeo_help or support.