{"id":13825349,"url":"https://github.com/xditya/GetRestrictedMessages","last_synced_at":"2025-07-08T21:32:12.656Z","repository":{"id":173381923,"uuid":"650680371","full_name":"xditya/GetRestrictedMessages","owner":"xditya","description":"Copy messages from telegram chats with forward restrictions enabled.","archived":false,"fork":false,"pushed_at":"2023-09-28T08:46:35.000Z","size":21,"stargazers_count":63,"open_issues_count":2,"forks_count":57,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-11-09T22:47:14.418Z","etag":null,"topics":["restriced-messages","telegram"],"latest_commit_sha":null,"homepage":"https://t.me/BotzHub/268","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xditya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-07T15:18:39.000Z","updated_at":"2024-10-28T16:06:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"9b666df0-b732-4f2a-8622-b4d3f48137a4","html_url":"https://github.com/xditya/GetRestrictedMessages","commit_stats":null,"previous_names":["xditya/getrestrictedmessages"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xditya%2FGetRestrictedMessages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xditya%2FGetRestrictedMessages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xditya%2FGetRestrictedMessages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xditya%2FGetRestrictedMessages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xditya","download_url":"https://codeload.github.com/xditya/GetRestrictedMessages/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225465291,"owners_count":17478518,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["restriced-messages","telegram"],"created_at":"2024-08-04T09:01:19.216Z","updated_at":"2024-11-20T03:31:08.409Z","avatar_url":"https://github.com/xditya.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# GetRestrictedMessages\nTelegram bot to copy messages from chats (both private and public) with forward restrictions enabled.\n\n\n## Environment Variables\n\nTo run this project, you will need to add the following environment variables to your .env file\n\n- `API_ID` - Telegram API ID from [my.telegram.org](https://my.telegram.org)\n- `API_HASH` - Telegram API HASH from [my.telegram.org](https://my.telegram.org)\n- `SESSION` - Telethon session string. Get it by running `python sessiongen.py` locally.\n- `AUTHS` - List of telegram user IDs who can use the bot, split by space.\n\nA sample .env file would look like this:\n```env\nAPI_ID=123\nAPI_HASH=abcdefd\nSESSION=1Babcdefg\nAUTHS=719195224 12345678\n```\n\n\n\n## Deployment\n[![Video Tutorial](https://img.shields.io/youtube/views/uk6kd29C9E8?label=Deploying%20Tutorial)](https://www.youtube.com/watch?v=uk6kd29C9E8)\n\n[![DigitalOcean Referral Badge](https://web-platforms.sfo2.digitaloceanspaces.com/WWW/Badge%203.svg)](https://www.digitalocean.com/?refcode=7b7d6a915392\u0026utm_campaign=Referral_Invite\u0026utm_medium=Referral_Program\u0026utm_source=badge)\n\n\nTo deploy this bot, run:\n\n```shell\ngit clone https://github.com/xditya/GetRestrictedMessages\ncd GetRestrictedMessages\npip install -r requirements.txt\ncp .env.sample .env\nnano .env [ fill the values and exit with ctrl+s and then ctrl+x ]\npython main.py\n```\n\nOR\n\nYou can use other platforms that offer free deployments.\n## Support\n\nFor support, use the GitHub discussions tab, or join the support chat on telegram by clicking [here](https://t.me/BotzHubChat).\n\n\n## License\n\n[GNU AFFERO GENERAL PUBLIC LICENSE](./LICENSE)\n\n\n## Authors\n\n- [@xditya](https://xditya.me)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxditya%2FGetRestrictedMessages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxditya%2FGetRestrictedMessages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxditya%2FGetRestrictedMessages/lists"}