
A Telegram Mass Surveillance Bot in Python

Informer (TGInformer) is a bot library that allows you to masquerade as multiple REAL users on telegram and spy on 500+ Telegram channels per account. Details are logged to a MySQL database, a private Google Sheet and your own private channel for analysis.
This is a functioning proof-of-concept project with known bugs. Feel free to fork, share and drop me a line.



Supports regular expressions for keyword filtering
SQLAlchemy for agnostic data persistence

Logging contextual message and channel data to a private channel and database
Stores meta information about sender of message, channel, number of participants in the channel


Persists session of channels joined
Login once, bot stays logged in forever without needing 2FA re-authentication
Join up to 500 channels per account

Edit the file informer.env which contains all the required environmental variables for informer
You can retrieve the necessary Telegram-related information here:
https://my.telegram.org/auth to authenticate your account by providing a phone number and the confirmation code sent to your phone number (or Telegram)


Once you are authenticated, click on "API Development Tools"

Go ahead and create a New Application by filling out the form shown below

You should now have the necessary parameter values for the informer.env file fields TELEGRAM_API_HASH and TELEGRAM_API_APP_ID

TELEGRAM_ACCOUNT_PHONE_NUMBER and move on to the next section
So far we have what we need for Telethon and Informer to access the Telegram APIs, next we need to acquire the indentifiers for your bot's account.
userinfobot.


You should receive your Telegram username and your Telegram account ID. This is important

informer.env file and fill in the values for TELEGRAM_ACCOUNT_ID which
should be your Telegram account ID from the previous step and TELEGRAM_ACCOUNT_USER_NAME.You can optionally fill in TELEGRAM_NOTIFICATIONS_CHANNEL_ID with your user name or a channel ID.
TELEGRAM_ACCOUNT_PHONE_NUMBER filled out as this is key to generating the session. For creating multiple accounts, please check out the Burner App below.Make sure you are running python 3 and simply run ./quick_start.sh in the directory.
You must run this first so that you can authenticate with Telegram on the first run and generate a local session file
You can later copy the files for the different accounts in app/session and mount them via Docker should you choose to do so.

You will be prompted to enter in the authentication code you received either via Telegram if you have logged in before, or via SMS
