This is a simple program that will combine all your channels into one, as well as filter ads in them.
The program through your account goes to all the channels that you have added to the channels.json
and sends them to your personal (or not) channel.
Subscribe to the channels in the telegrams is not required.
In the new version, you can subscribe to a private channel. All private channels require a subscription therefore you will be automatically subscribed to this channel. It will be immediately archived
-
Firstly, install all requirements with
pip install -r requirements.txt
-
Go to my.telegram.org and create your own app (get your api_id and api_hash).
-
Create a channel where you want to see the news.
-
Create a bot with t.me/BotFather.
-
Now paste all data into
config.py
, like this:### Telegram-client side: ### api_id = XXXX api_hash = "XXXXXXXXXXXXXXXXXXX" MyChannel = "XXXXXXXXXXXXXXXXXXXXXXXX" #link to your chat ### Bot-side: ### bot_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX" admin_chat_id = None channel_id = None
Data like admin_chat_id
and channel_id
you can get with debug value ("None") and replace. Optional:
admin_chat_id = 12345
channel_id = -1234567
- On first start you must enter phone-number and password from telegram-account. Telethon requried.
/add - Add channel
/del - Delete channel
/channels - Channels List
/addrule - Add rule
/delrule - Delete rule
/setads - Enable/Disable AdBlock
/rules - List of AdBlock rules