Skip to content

xditya/GetRestrictedMessages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GetRestrictedMessages

Telegram bot to copy messages from chats (both private and public) with forward restrictions enabled.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

  • API_ID - Telegram API ID from my.telegram.org
  • API_HASH - Telegram API HASH from my.telegram.org
  • SESSION - Telethon session string. Get it by running python sessiongen.py locally.
  • AUTHS - List of telegram user IDs who can use the bot, split by space.

A sample .env file would look like this:

API_ID=123
API_HASH=abcdefd
SESSION=1Babcdefg
AUTHS=719195224 12345678

Deployment

Video Tutorial

DigitalOcean Referral Badge

To deploy this bot, run:

git clone https://github.com/xditya/GetRestrictedMessages
cd GetRestrictedMessages
pip install -r requirements.txt
cp .env.sample .env
nano .env [ fill the values and exit with ctrl+s and then ctrl+x ]
python main.py

OR

You can use other platforms that offer free deployments.

Support

For support, use the GitHub discussions tab, or join the support chat on telegram by clicking here.

License

GNU AFFERO GENERAL PUBLIC LICENSE

Authors