Skip to content

A Channel Auto Post (User)Bot To Forward All New Posts Of A Channel To Another!

License

Notifications You must be signed in to change notification settings

ogsamrat/ChannelAutoPost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ChannelAutoPost

A Channel Auto Post (User)Bot To Forward All New Posts Of A Channel To Another!

Make sure to add bot to both/all the channel and promote, if you are using userbot you just need to be admin in the TO_CHANNEL, and just join the FROM_CHANNEL channels to forward simple :)

Session String

generate_string

Installation Guide:

Local

The Normal Way

Simply clone the repository and run the main file:

git clone https://github.com/EmiliaDevs/ChannelAutoPost
cd ChannelAutoPost
virtualenv -p /usr/bin/python3 venv
. ./venv/bin/activate
pip install -r requirements.txt
# <Create Config.py with variables as given below>
python3 -m ChannelAutoPost

An example Config.py file could be:

Not All of the variables are mandatory

The (User)bot should work by setting only the first three variables

from heroku_config import Var

class Config(Var):
  APP_ID = 6
  API_HASH = "eb06xxxxxxxxxxxx"
  BOT_TOKE = "1234567890:xxxxxxxxxxxx"  
Heroku

Heroku Configuration

Simply just leave the Config as it is.

Deploy To Heroku

Mandatory Vars

  • Only three of the environment variables are mandatory.
  • This is because of telethon.errors.rpc_error_list.ApiIdPublishedFloodError
  • The userbot will not work without setting the mandatory vars.

Disclaimer:

    	Improper use may lead to ban.
    	I am not responsible if you misuse this bot.
      

Credits:

Lonami, for Telethon

About

A Channel Auto Post (User)Bot To Forward All New Posts Of A Channel To Another!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages