Orbeo

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.

Guides

Create a bot

  1. In Orbeo open Settings → My bots → Create a bot.
  2. The handle must end with bot, for example weather_bot.
  3. The token is shown once. Lost it? Tap Issue a new token — the old one stops working.
  4. To post in a channel: channel → Administrators → Add a bot.

Addresses

TelegramOrbeo
Methodsapi.telegram.org/bot<TOKEN>/<method>orbeo.me/botapi/bot<TOKEN>/<method>
Filesapi.telegram.org/file/bot<TOKEN>/<path>orbeo.me/botapi/file/bot<TOKEN>/<path>
Token@BotFatherSettings → 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

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

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

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.