Developer docs
6. Bots
Create a bot as a user: BotsService/CreateBot(name, username) → token
(<bot_id>:<secret>). The bot then either:
- speaks this protocol after
AuthService/ImportBotAuthorization(token)and receives messages as normal updates pluscallback_query/inline_query; or - uses the Telegram-compatible HTTP Bot API at
https://<host>/bot<token>/<method>, see BOT_API.md. Most Telegram bot frameworks work by changing only their API base URL.
Users interact with bots through commands (/start), inline keyboards
(MessagesService/GetCallbackAnswer) and reply keyboards.
Bot API notes on reactions and privacy:
setMessageReaction(chat_id, message_id, reaction, is_big):reactionis a list ofReactionType({"type":"emoji","emoji":"👍"},{"type":"custom_emoji", "custom_emoji_id":"…"}) that replaces the bot’s reactions; an empty or missing list removes them. Like Telegram, a bot may set one reaction, a custom emoji only if it is already on the message, and never a paid one.- Bots see users through the same privacy rules as anyone else (photo, bio, last seen…),
and
sendVoice/sendVideoNoteto a premium user who restricted voice messages fails withVOICE_MESSAGES_FORBIDDEN.
Generated from docs/PROTOCOL.md in the Telvoro repository. Wire names such as televo.v1 are unchanged.