Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

With this bot you can merge (combine) all your telegram channels into one news feed

License

Notifications You must be signed in to change notification settings

AginSquash/UnionChannel_telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Union Channel

What's it?

This is a simple program that will combine all your channels into one, as well as filter ads in them.

How it works?

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

How to use?

  • 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.

Some bot commands

/add - Add channel
/del - Delete channel
/channels - Channels List
/addrule - Add rule
/delrule - Delete rule
/setads - Enable/Disable AdBlock
/rules - List of AdBlock rules