- Guardian bots automate member admission through smart filters and pre-access questionnaires.
- They allow for hybrid moderation that combines identity validation upon entry with spam removal once inside the chat.
- There are implementation paths that range from quick no-code solutions to custom developments using webhooks and APIs.
Managing a private Telegram group can become problematic as the number of members increases. invitation links they can end up in the hands of unwanted peopleAccess requests accumulate and administrators must manually review each profile.
To reduce this work, Telegram allows you to use Guardians with artificial intelligenceThis isn't about AI being automatically integrated into all groups, but rather compatible bots that can act as administrators and review applications before a person is allowed to join.
These bots can directly approve or reject the applicant, leave the decision to an administrator, or show them a Mini App with additional questions and checks.
What are Telegram's AI Guardians?

A Guardian is a Telegram bot ready to process access requestsYou must be added to the group as an administrator and have the necessary permissions to manage invitations.
When someone uses a link that requires approval, the bot can intervene before they access the group content. Depending on its configuration, it can:
- Automatically approve the request.
- Reject it when it detects spam or clear violations.
- Leave it pending for review by an administrator.
- Display a Mini App with additional questions, rules, or verifications.
Telegram calls these responses approve, decline y queueThe last option is especially important because it allows for the automation of obvious cases without forcing AI to make dubious decisions.
The Guardian can also moderate messages after entry, but only if its developer has incorporated that function and the administrator grants it additional permissions.
What you need to use a Guardian bot
Before you begin, check that you have these items:
- A Telegram group that you own or manage.
- An updated version of the application.
- A bot that explicitly states that it accepts access requests as a Guardian.
- An invitation link approved by administrators.
- A clear policy for approving, rejecting, or reviewing each application.
Not all moderation bots are compatible. A bot might detect spam, delete links, or run a CAPTCHA, but still not support the new Mini Apps application system.
For this reason, it is necessary to check that the supplier expressly mentions compatibility with the Telegram Guardians or with the join request queriesThe Bot API identifies this capability using the attribute supports_join_request_queries.
How to add an AI Guardian to a group
The exact names of some menus may vary between Android, iOS, and Telegram Desktop, but the general process is as follows:
- Open the group you want to protect.
- Go to your profile and open the administration options.
- Access the administrators section.
- Select the option to add a new administrator.
- Find the compatible bot you want to use.
- Grant it permission to invite users or manage requests.
- Assign it as the bot responsible for processing access requests, if that option appears.
- Save the settings.
Telegram only allows bots that advertise their compatibility with access requests to be assigned this function. If the bot doesn't appear as an option, it probably hasn't implemented the necessary feature yet.
How to create a link that requires approval
The Guardian can only examine a request if the user enters through a link configured to request authorization.
To create it:
- Open the group profile.
- Enter Invitation links.
- Select the option to create a new link.
- Active Request administrator approval.
- Assign a name to the link to identify its origin.
- Save and share the new link.
The names allow you to distinguish, for example, a link published on a website, one intended for clients, and one shared in a campaign. This makes it easier to detect where problematic requests are coming from.
If you use the main group link or one that doesn't require approval, the user will be able to enter directly and the Guardian won't have any prior requests to analyze.
How the admissions process works

When someone clicks the protected link, Telegram creates a request and delivers it to the bot designated as the Guardian. From that point on, two types of evaluation can occur.
Direct decision
The bot analyzes the available data and responds with one of the three allowed results:
- Approve: The user joins the group.
- Decline: The request is rejected.
- Leave in queue: A human administrator makes the final decision.
Automatic approval is suitable for objective rules. For example, a user can be accepted who arrives from a specific link and meets certain pre-verified conditions.
Assessment using a Mini App
If more data is needed, the Guardian can display a Mini App before resolving the requestThis interface may include:
- Acceptance of group norms.
- Multiple choice questions.
- Free response fields.
- Membership or subscription checks.
- Information needed to assign a user profile.
Once the Mini App is completed, the bot evaluates the responses and approves, rejects, or sends the case to the review queue.
What permissions should be granted to the Guardian?
To process requests, the bot needs the administrator permission related to invite usersIn the Bot API, this permission is identified as can_invite_users.
If you also want to use it to moderate those who have already entered, you may need permission to:
- Delete messages.
- Restrict members.
- Remove users.
Do not grant permissions to add administrators, modify group information, or pin messages if they don't need them. Apply the principle of minimal privileges It limits the damage that could result from a failure, incorrect configuration, or theft of the bot's credentials.
How to define a good admissions policy
The quality of the result depends more on the rules than on the amount of artificial intelligence used. An effective policy must specify which conditions trigger each response.
A prudent configuration might work like this:
- Automatic approval: correct and verifiable answers.
- Automatic rejection: obvious spam, malicious links, or answers completely incompatible with the group's purpose.
- Human review: incomplete, ambiguous, or subjective answers.
It is not advisable to ask a model to freely determine whether a person "seems trustworthy." It is better to use observable criteria and reserve the tail for cases that require interpretation.
It is also advisable to inform the applicant of the rules, what data is collected, and how they can contact an administrator if they believe they have been rejected in error.
Privacy and handling of responses
The questions displayed within a Mini App may be managed by an external company or developer. Therefore, it should not be assumed that all information remains exclusively within Telegram.
Before using a Guardian, check:
- Who develops and operates the bot?
- What information does it store?
- How long does it keep the answers?
- Which artificial intelligence providers does it share data with?
- How can the collected data be deleted?
Avoid requesting passwords, identity documents, bank information, or any other data that is not essential to access the group.
How to develop a custom Guardian

When the available tools do not offer the necessary logic, you can create your own bot using the Telegram API.
The technical workflow requires:
- Register the bot using BotFather and protect its token.
- Prepare it to accept access request queries.
- Add it to the group with permission
can_invite_users. - Receive updates
chat_join_request. - Read the identifier
query_idof the application. - Respond by
answerChatJoinRequestQueryor open a Mini App withsendChatJoinRequestWebApp.
Updates can be received via a webhook or using getUpdatesFor permanent service, it is more common to use a HTTPS webhookwhile regular consultations may be more convenient during testing.
The Mini App must also use HTTPS and properly validate the data received from Telegram. The bot token should never be included in the browser's visible code.
Common mistakes when using AI Guardians
The bot does not appear as a Guardian
It's probably not compatible with the new access queries. Check that the provider explicitly mentions this feature and update Telegram to the latest version.
The bot is not receiving any requests.
Check that the link used has administrator approval enabled and that the bot has permission to invite users.
The Mini App won't open
Verify that your address uses HTTPS and that the domain is correctly configured by the bot developer.
The Guardian rejects too many users
The rules can be too ambiguous or too strict. Configure doubtful cases to remain in the queue instead of automatically rejecting them.
The bot accepts users, but it doesn't eliminate spam.
Admission and subsequent moderation are separate functions. Deleting messages or removing members requires specific logic and additional permissions.
The bot stops responding
If it's a custom development, check the webhook status, pending updates, and server logs. You should also verify that the token hasn't been revoked.
How to test the Guardian without putting the group at risk
Before using it with real requests, create a test group or use a secondary account.
Check at least these scenarios:
- A response that must be approved.
- A response that should be rejected.
- An ambiguous case that must remain in the queue.
- An abandoned, unfinished Mini App.
- An attempt to send malicious links or instructions in a free reply.
It's also advisable to initially have an administrator overseeing the decisions. Once the rules are proven to work, the level of automation can be gradually increased.
AI-powered Guardians make joining a Telegram group a streamlined and scalable process. Their biggest advantage isn't indiscriminately rejecting users, but rather automating obvious decisions and reserving human intervention for truly questionable applications.
Index
- 1 What are Telegram's AI Guardians?
- 2 What you need to use a Guardian bot
- 3 How to add an AI Guardian to a group
- 4 How to create a link that requires approval
- 5 How the admissions process works
- 6 What permissions should be granted to the Guardian?
- 7 How to define a good admissions policy
- 8 Privacy and handling of responses
- 9 How to develop a custom Guardian
- 10 Common mistakes when using AI Guardians
- 11 How to test the Guardian without putting the group at risk