Home

Awesome

ail-feeder-telegram

External telegram feeder for AIL framework (with an automated user account)

Install

pip3 install -U -r requirements.txt
cp etc/conf.cfg.sample etc/conf.cfg

Configuration

Add your telegram account in etc/conf.cfg:

:warning: Telegram API hash is secret and can't be revoked :warning:
You can use this API ID and hash with any phone number or even for bot accounts

Usage

feeder.py

Joining Channels

python3 bin/feeder.py join -n CHANNEL_USERNAME 
python3 bin/feeder.py join -i INVITE_HASH 

Channels can also be joined from the mobile application on Apple or Android. Once the script is re-run, the newly joined channel will be added to the messages queue.

Leaving Channels

python3 bin/feeder.py leave CHANNEL_USERNAME/CHANNEL_ID 

Channels can also be left from the mobile application on Apple or Android. If you leave a channel whilst the script is running there will likely be an exception error.

Get all Channels

python3 bin/feeder.py chats 

Running this action will export a python list of channel IDs your Telegram account has joined.

If you join too many channels, too quickly, you might experience a waiting period before you can join a new one.

Get Channel Messages

python3 bin/feeder.py messages CHANNEL_USERNAME/CHANNEL_ID

MONITOR Messages from all Joined Channels

python3 bin/feeder.py monitor