Skip to content

Copy messages from telegram chats with forward restrictions enabled.

License

Notifications You must be signed in to change notification settings

mega4me/GetRestrictedMessages

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 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

About

Copy messages from telegram chats with forward restrictions enabled.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.3%
  • Procfile 0.7%