SaveRestrictedContentBot
SaveRestrictedContentBot copied to clipboard
Added full support for non-premium users
Remove Print Statements and Add Logger, Support for Non-Premium Telegram Users
Summary
This pull request introduces the following changes:
-
Removed all print statements: Replaced with logger to ensure logs appear in Docker logs (command:
docker logs <container_name>). - Enhanced file splitting for non-premium Telegram users: The program now splits both video and document files into parts if the account is non-premium and the file size exceeds 2GB.
Changes
-
Logging Improvements:
- Replaced all
printstatements withloggercalls to ensure proper logging within Docker containers. This allows for better log management and troubleshooting in production environments.
- Replaced all
-
Support for Non-Premium Telegram Users:
- Implemented logic to split video and document files into parts if the Telegram account is non-premium and the file size is above 2GB.
- Ensures that the application can handle large files more effectively, regardless of the user's account type.
Rationale
-
Drawback of Print Statements:
printstatements do not appear in Docker logs, which makes it challenging to debug and monitor the application when running inside a Docker container. - Enhanced Functionality for Users: Supporting non-premium users by handling large file uploads enhances the application's usability and accessibility.
Testing
- Verified that logs are correctly captured in Docker logs.
- Tested file splitting functionality for non-premium Telegram accounts with various file sizes.
An error occured while splitting the file
The input files are corrupt How to fix problems render.com
can you explain it. like a screen shot or some way to reproduce it?
How to fix render problem
Thanks for input. I will look into it.