The Cast tab lets you send a single message to every active chat in the database simultaneously. This is useful for announcing bot maintenance windows, pushing policy updates, or distributing important notices to all groups and DMs the bot participates in.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/AmiraliNotFound/dummy-gemini-bot/llms.txt
Use this file to discover all available pages before exploring further.
How to Broadcast
- Open the Cast tab in the admin dashboard.
- Type your message in the broadcast compose field.
- Click Send to Broadcast — this calls
POST /api/broadcast. - The API collects all chat IDs from the database and dispatches the message to each one concurrently.
API Reference
| Field | Description |
|---|---|
status | "success" on completion (even if some sends failed) |
sent | Number of chats that received the message successfully |
total | Total number of chats attempted |
Delivery Behavior
The broadcast iterates over everychat_id in the messages table. For each chat:
- A successful send increments the
sentcounter in the response. - A failed send (e.g. the bot was removed from the group, or the user blocked the bot) logs a
BROADCAST_ERRORentry in the error log. The number of failed deliveries can be derived astotal - sent. - The
totalfield reflects the number of distinctchat_idvalues in themessagestable at the time of the broadcast.
User Profile Links
From the Mod tab chat drawer, you can use Send Profile Link to send a user their own Telegram profile shortcut directly to a DM. This callsPOST /api/chat/send_profile_link and delivers an inline-keyboard message to the requesting admin’s own Telegram chat containing a tg://user?id=<target_id> deep link button — useful for support follow-ups or identity verification.