Introduction#
Important
Warning: Due to the special nature of userbot
, this site (including the original developer) cannot guarantee that your Telegram account will not be abused by the official authorities. Please think twice before proceeding.
If you insist on playing and do not want to be banned or restricted, please make sure you meet any of the following conditions:
1. Your account was registered before the year you built it.
2. You have (had) Telegram premium.
3. You are an esteemed +888 user.
4. You have purchased a username on Fragment.
Preparation#
1) A good internet environment.
2) A server with a good internet environment (Ubuntu is recommended).
3) A brain.
4) A pair of hands.
About server selection#
If you want to experience a smoother PagerMaid, you first need to choose a server that is relatively close to your account's data center.
Telegram's DC1 and DC3 are in Miami, USA, DC2 and DC4 are in the Netherlands, and DC5 is in Singapore.
Please determine which country's server you need to purchase based on this information.
To find out which data center your account belongs to, please set a profile picture and ask @nmnmfunbot to send /dc.
Tutorial#
API Application#
Note
If you already have an API ID and API Hash, please skip this step.
First, open the Telegram official website.
Enter the phone number associated with your Telegram account (in international format, such as +8618911451919).
Then enter the received verification code to log in.
Then click on API development tools
.
Then come to this page and fill in whatever is required.
Then we will get this string.
Note it down somewhere, we will need it later.
Note
If clicking on Create application gives an ERROR, it's probably because you're unlucky. It is recommended to try changing nodes or devices. If that doesn't work, you can try begging others for help. (When I wrote this tutorial in August 2022, API could be easily obtained. Today, I tried two accounts and couldn't get it to work.)
Server Setup#
First, we need to confirm the current Python version on the server. Enter python3 -V
.
If it is > 3.9, then we can proceed to the next step. If it is < 3.9, please enter:
sudo apt update && sudo apt upgrade -y
Then enter:
sudo add-apt-repository ppa:deadsnakes/ppa
Press Enter to confirm, and after it finishes updating, enter:
apt install python3.11
This way, you will have Python3.11.
In the following tutorial, please replace the python3
command with python3.11
, including the running command in the process guardian at the end.
Install basic dependencies#
apt update && apt upgrade -y
apt install python3-pip python3-venv imagemagick libwebp-dev neofetch libzbar-dev libxml2-dev libxslt-dev tesseract-ocr tesseract-ocr-all git -y
Clone the repository#
git clone https://github.com/TeamPGM/PagerMaid-Pyro.git
cd PagerMaid-Pyro
Install PIP dependencies#
python3 -m pip install -r requirements.txt
Modify the configuration file#
mv config.gen.yml config.yml
vim config.yml
Here, you need to change two places. Replace ID_HERE
and HASH_HERE
with the API ID and API Hash you obtained.
Choose to enable or disable the following options as desired.
Then press ESC
, enter :wq
, and press Enter to save and exit.
Start PagerMaid#
python3 -m pagermaid
Then follow the prompts to log in.
That's basically it.
Go to Telegram and find any chat window to send ,help
and give it a try.
Check the running status with ,status
.
systemctl process guardian#
After the setup is complete, we need to make it run persistently. Enter the following commands in the terminal:
cat <<'TEXT' > /etc/systemd/system/pagermaid.service
[Unit]
Description=PagerMaid-Pyro telegram utility daemon
After=network.target
[Install]
WantedBy=multi-user.target
[Service]
Type=simple
WorkingDirectory=/root/Pagermaid-Pyro
ExecStart=python3 -m pagermaid
Restart=always
TEXT
Some commands:
systemctl enable pagermaid
// Enable auto-start on boot
systemctl disable pagermaid
// Disable auto-start on boot
systemctl start pagermaid
// Start
systemctl stop pagermaid
// Stop
This article is synchronized and updated to xLog by Mix Space.
The original link is https://blog.nekorua.com/posts/build/38.html