Create a bot
Messenger → Bots → “New bot” (or Console → Messenger and email → Bots and webhooks). The username must end in _bot. The token, shaped like 5000000123:AA…, is shown once and can be rotated at any time.
A Telegram-compatible API
The bot API lives at https://whycloud.ir/inbox/api/bot<token>/<method>. Methods and responses follow Telegram’s Bot API: getMe, sendMessage (parse_mode for HTML and MarkdownV2, reply_markup with inline buttons or keyboards), editMessageText, deleteMessage, sendPhoto and sendDocument, sendPoll, answerCallbackQuery, setMyCommands, getChat, getChatMember and more. Telegram bot libraries (python-telegram-bot, Telegraf, aiogram, grammY) work by changing the base URL.
Receiving updates
Either long-poll getUpdates or call setWebhook with your https URL; updates carry X-Telegram-Bot-Api-Secret-Token when you set secret_token. In groups, bots receive commands (/start), mentions (@bot_name) and replies to their own messages by default.
Add a bot to a group
A group admin adds the bot by its username from the group’s members. The bot’s commands are suggested when typing / in the group and inline buttons work for everyone.
Incoming webhooks for groups
Group info → Webhooks → “New webhook” gives you a URL. Any system can post into the group with a POST to it: {"text": "Deploy succeeded"}, with parse_mode, a card (title, fields, url) or buttons. Slack payloads (text and attachments), Alertmanager and Grafana are accepted as they are, so CI, monitoring or your shop connect unchanged.
Limits and security
Each bot sends up to 30 messages a second and 20 a minute per group; each incoming webhook accepts 60 messages a minute. Bot tokens and webhook URLs are secrets — rotate them right away if they leak. Outgoing webhook URLs must be public and https.