ail-project / ail-feeder-telegram

External telegram feeder for AIL framework
GNU Affero General Public License v3.0
13 stars 2 forks source link

ail-feeder-telegram

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

Install

Configuration

Add your telegram account in etc/conf.cfg:

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