> For the complete documentation index, see [llms.txt](https://docs.pyrate.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pyrate.fun/utility/telegram-bots/p.-guard-module.md).

# P. Guard Module

P. Guard Module is a tool that adds an extra layer of security to your Telegram projects by creating a controlled entry point into private chats and channels. It helps prevent bots and scammers from infiltrating the group, allowing only trusted members to gain access.

## How it works:

{% stepper %}
{% step %}
When working on a project, you may set up a chat or channel in Telegram where people can interact, ask questions and share information. This chat is open to anyone who has the link to it.
{% endstep %}

{% step %}
P. Guard Module allows you to set up a "portal" in these Telegram channels or chats. In essence, P. Guard Module acts as a gatekeeper. You can install P. Guard Module into both the chat and the channel. Once it’s set up, P. Guard Module will control who can join the chat.
{% endstep %}

{% step %}
The portal created by P. Guard Module works similarly to a verification system. When someone clicks the link to enter the channel, they won’t be able to just join directly. They will be prompted to complete a verification process (like clicking a button or passing a security check). This is similar to how some websites use a verification system, but instead of gaining access to a website the person gains access to a private Telegram chat.
{% endstep %}

{% step %}
P. Guard Module main purpose is to filter out unwanted users. This means it helps prevent bots, fake accounts, scammers or any malicious participants from joining your private chat. Only those who pass the verification process will be able to join the conversation, ensuring that your group stays secure.
{% endstep %}
{% endstepper %}

### Getting started is simple:

1. Just open Telegram and start the bot:[ ](< https://t.me/pyraterefbot >)[ ](< https://t.me/pyraterefbot >)[@pyrateguardbot](https://web.telegram.org/a/#7474892476)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pyrate.fun/utility/telegram-bots/p.-guard-module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
