GetRestrictedMessages
GetRestrictedMessages copied to clipboard
Copy messages from telegram chats with forward restrictions enabled.
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.orgAPI_HASH- Telegram API HASH from my.telegram.orgSESSION- Telethon session string. Get it by runningpython sessiongen.pylocally.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
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