This project is designed to analyze ad and fishing userbots group members to identify bots, dead accounts, and inactive members for further administration.
Before you start working with the software part you need to register the application in Telegram (via this link). You need to create an application and copy api_id and api_hash from there.
Next, move tg-config.json
from the templates
folder to the main folder.
Paste the api_id and api_hash into the appropriate fields: Also you need your personal Telegram UID for it.
{
"api_id": "1234",
"api_hash": "abcdef1234",
"your_id": 1234
}
To start using it, it is advisable to create venv
and use it:
python -m venv venv
source ./venv/bin/activate # For linux
Next, install all the necessary libraries:
pip install -r ./reqs.txt
Finally, you can run the main file:
python ./main.py
At the beginning you will be prompted to log in to your account, log in. Pass 2FA if you have it enabled.
After in telegram you can write to any chat room
!anl --group_type=TYPE --chat_id=ID [--send_back]
Where instead of ID is the ID of the group or supergroup Instead of TYPE - type of group:
group
: Regular groupsupergroup
: Supergroup
TIP: You can type arguments in any order and not only in 1 line:
!anl
--group_type=TYPE
--chat_id=ID
[--send_back]
You can use --send_back
to send the report archive back to you saved messages. For example:
!anl
--group_type group
--chat_id 1234
--send_back
To view the ID you need:
- Go to Telegram settings
- Go to the "Advanced" tab
- At the very bottom, click the "Experimental" tab
- Enable the display of "Peer IDs"
- Group:
- Number of members up to 200
- No invitation link
- Private only
- Supergroup:
- Number of participants up to 200'00
- Have invitation link
- Can be either public or private
The principle of operation for the Beta 2 version period is as follows:
- The program gets access to an open chat room (group or supergroup)
- The program gets all users of the group, performing initial analysis
Primary (plain) analysis is obtaining public information about a user, i.e.:
- Full Name
- Username
- Phone number (if available)
- When was last online
- When joined the group
- How many posts have been written
- Small version of avatar
- Presence of premium on the account
- Unique Telegram User Identification Number (Telegram UID)
- Is this a bot or not
- Depending on the number of messages:
-
If there are 0 or 1 (only message about joining the group or basically none), then level of trust becomes 0. This is probably a bot or a dead account
-
If there are up to a treshhold (50 by default), then each message is pulled out for further analysis:
- Text
- Date of change
- ID
- The date the message was written
In this case, the confidence level is 0.5
-
If there are more messages than treshhold, then the trust level is maximized.
- Finally the report made is written to a *.json file
- Then all user avatars are downloaded by file_id for further analysis