Giter Club home page Giter Club logo

unionchannel_telegram's Introduction

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

unionchannel_telegram's People

Contributors

aginsquash avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

unionchannel_telegram's Issues

Can't get/don't understand how to get the bot working

Hi!
I want to use this bot, but I am newbie and I don't know how to do it
I followed the instructions, made an app in my.telegram.org, made a bot with BotFather.. And now? What do I have to do?
A video could be great to understand what to do
Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.