A Telegram bot added to a group runs in privacy mode by default. It receives commands meant for it, replies to messages meant for it and inline messages sent via the bot. Ordinary messages between members never reach it. To receive them, turn privacy mode off with /setprivacy in BotFather or with setMySettings (Bot API 10.5), then re-add the bot. Or make the bot a group admin. The rules come from the privacy mode section of Telegram’s bot features page and the bot FAQ (both accessed 2026-11-04).
Which group messages reach the bot
Privacy mode filters ordinary group messages. It doesn’t touch service messages, private chats or channels. The table follows the features page and the FAQ, which word some rows differently.
| Message in the group | Privacy mode on | Privacy mode off, or bot is admin |
|---|---|---|
/command@this_bot |
Yes | Yes |
General command such as /start |
Only if this bot was the last bot to post in the group | Yes |
| Reply to a message meant for the bot | Yes | Yes |
| Inline message sent via the bot | Yes | Yes |
| Plain text from members | No | Yes |
| Service messages | Yes | Yes |
| Messages from other bots | Mentions and replies, if either bot has Bot-to-Bot Communication Mode | All, if this bot has Bot-to-Bot Communication Mode |
The FAQ adds two rules for groups with several bots. “Replies have the highest priority.” And “each particular message can only be available to one privacy-enabled bot at a time.” A general /start therefore reaches at most one of two privacy-mode bots in the same group. To address one bot by name, set its command list and parse the @botname suffix as shown in Telegram bot commands: setMyCommands and scopes.
Every bot, whatever the setting, also receives “All messages from private chats” and “All messages from channels where they are a member.”
Turn privacy mode off
Send /setprivacy to @BotFather and follow its prompts. BotFather’s command list describes it as setting “which messages your bot will receive when added to a group.” The features page documents only that command line, not the dialogue that follows.
Then remove the bot from the group and add it again. Telegram says “the bot will need to be re-added to the group for this change to take effect.”
Since Bot API 10.5 (22 November 2026) a bot can change it itself. setMySettings takes can_read_all_group_messages: “Pass True to disable privacy mode for the bot or False to enable it” (setMySettings, accessed 2026-11-24). Telegram doesn’t say whether a change made this way also needs the bot re-added, so re-add it anyway.
Making the bot an admin is the other route. Privacy mode is “enabled by default for all bots, except bots that were added to a group as admins.” Bot admins “always receive all messages.” Telegram doesn’t say whether a bot promoted after joining also needs re-adding. If messages still don’t arrive after a promotion, re-add it as an admin.
Telegram recommends disabling privacy only “in cases where it is absolutely necessary for your bot to work.” Its suggested alternative is the force reply option on the bot’s messages. A member’s answer to a force-reply prompt is a reply to the bot, so it passes privacy mode.
Bot API 10.0 added Guest Mode for bots that only need to answer when someone mentions them in a chat they haven’t joined. You enable it in BotFather’s MiniApp. A mention or a reply delivers a guest_message update, and the bot “is able to issue one reply.” The bot gets no message history and no participant list (guest bots, accessed 2026-11-04).
Check the setting with getMe
Since Bot API 10.5, getMe returns a BotFullInfo object instead of User. Its can_read_all_group_messages field is “True, if privacy mode is disabled for the bot” (BotFullInfo, accessed 2026-11-24). Bot API 10.5 covers the change. Telegram publishes no request samples for these methods. Every command and script below was written for this post from the reference’s parameter tables.
curl "https://api.telegram.org/botBOT_TOKEN/getMe"
The script below reads the same flags with the standard library. It also prints the active webhook filter from getWebhookInfo. TELEGRAM_API_BASE is optional and only needed for a local Bot API server.
# check_privacy.py usage: TELEGRAM_BOT_TOKEN=BOT_TOKEN python check_privacy.py
import json
import os
import sys
import urllib.error
import urllib.request
BASE = os.environ.get("TELEGRAM_API_BASE", "https://api.telegram.org")
TOKEN = os.environ.get("TELEGRAM_BOT_TOKEN") or sys.exit("set TELEGRAM_BOT_TOKEN")
API = BASE + "/bot" + TOKEN
def call(method):
try:
with urllib.request.urlopen(f"{API}/{method}", timeout=30) as r:
return json.load(r)
except urllib.error.HTTPError as e:
try:
return json.load(e) # Telegram puts the error in a JSON body
except ValueError:
return {"ok": False, "error_code": e.code, "description": str(e.reason)}
def main():
me = call("getMe")
if not me.get("ok"):
sys.exit(f"getMe failed: {me.get('error_code')} {me.get('description')}")
bot = me["result"]
print("username:", bot.get("username"))
print("can_join_groups:", bot.get("can_join_groups"))
print("can_read_all_group_messages:", bot.get("can_read_all_group_messages"))
hook = call("getWebhookInfo")
if not hook.get("ok"):
sys.exit(f"getWebhookInfo failed: {hook.get('error_code')} {hook.get('description')}")
info = hook["result"]
print("webhook url:", info.get("url") or "(empty)")
print("allowed_updates:", info.get("allowed_updates", "(not returned)"))
if __name__ == "__main__":
main()
If can_join_groups is false, nobody can invite the bot to a group. BotFather’s /setjoingroups toggles that, and so does setMySettings with can_join_groups. On an error, Telegram answers with ok: false, an error_code and a description, and the script prints both before it exits.
Messages from other bots
The FAQ still says bots “will not be able to see messages from other bots regardless of mode.” That line is out of date for bots that opt in. Bot API 10.0, of May 8, 2026, “Added the ability to see certain messages sent by other bots in groups.” The current version is Bot API 10.5, of November 22, 2026.
The bot-to-bot section tells you to enable Bot-to-Bot Communication Mode “for your bot in @BotFather.” It gives no step-by-step path. In a group, one bot reaches another with /command@OtherBot or a direct reply. “If at least one bot has Bot-to-Bot Communication Mode enabled, the receiving bot can receive and respond to the message.”
A bot with the mode on also gets every other bot’s group messages without mentions or replies, if it is an admin or has privacy mode off. Telegram requires loop safeguards when you turn the mode on. Its list includes deduplicating repeated messages and rate limits, “e.g., no more than one reply every few seconds per bot.” Unhandled loops “may lead to degraded performance or platform restrictions.”
Supergroups, channels and update types
The Chat object’s type is “private”, “group”, “supergroup” or “channel”. When a group becomes a supergroup, its chat ID changes. The migration message carries migrate_to_chat_id, and its pair migrate_from_chat_id points back to the old group. Update any stored chat ID when either field shows up.
Channel posts arrive under channel_post and edited_channel_post, never under message. An Update holds “At most one of the optional fields,” so a handler that reads only message drops every channel post. In a channel, from “may be empty,” and sender_chat names the chat that posted.
my_chat_member reports changes to the bot’s own status in a chat. Log it to see when someone adds or removes the bot, including the re-add after a privacy change. Messages in forum topics also carry message_thread_id and is_topic_message.
Filter updates with allowed_updates
setWebhook and getUpdates both take allowed_updates, “A JSON-serialized list of the update types you want your bot to receive.” An empty list means every type except chat_member, message_reaction and message_reaction_count. Leaving the parameter out keeps the previous setting, so a filter from an earlier deploy stays active until you send a new list. chat_member and message_reaction also require the bot to be an administrator.
This request, built from the setWebhook table, asks for messages, channel posts and the bot’s membership changes.
curl -X POST "https://api.telegram.org/botBOT_TOKEN/setWebhook" \
-H "Content-Type: application/json" \
-d '{"url": "https://YOUR_DOMAIN/telegram", "allowed_updates": ["message", "channel_post", "edited_channel_post", "my_chat_member"], "secret_token": "SECRET_TOKEN"}'
The filter doesn’t affect updates created before the call, “so unwanted updates may be received for a short period of time.” getWebhookInfo returns the active allowed_updates, which the script above prints. You can’t use getUpdates “for as long as an outgoing webhook is set up.” Webhooks accept ports 443, 80, 88 and 8443.
The secret_token header is covered in Telegram webhooks with secret_token. If a busy group pushes your replies into 429 errors, see Telegram Bot API limits: 429 errors and retry_after. In n8n, the same filtering applies to the Telegram Trigger node.
Z-API Omni team