SaveRestrictedContentBot icon indicating copy to clipboard operation
SaveRestrictedContentBot copied to clipboard

Added full support for non-premium users

Open absar0920 opened this issue 1 year ago • 4 comments

Remove Print Statements and Add Logger, Support for Non-Premium Telegram Users

Summary

This pull request introduces the following changes:

  1. Removed all print statements: Replaced with logger to ensure logs appear in Docker logs (command: docker logs <container_name>).
  2. 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 print statements with logger calls to ensure proper logging within Docker containers. This allows for better log management and troubleshooting in production environments.
  • 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: print statements 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.

absar0920 avatar Jun 03 '24 12:06 absar0920

An error occured while splitting the file

The input files are corrupt How to fix problems render.com

Ali777666 avatar Jun 20 '24 19:06 Ali777666

can you explain it. like a screen shot or some way to reproduce it?

absar0920 avatar Jun 21 '24 00:06 absar0920

Screenshot_20240624-211256_Chrome Screenshot_20240624-210846_AyuGram How to fix render problem

Ali777666 avatar Jun 24 '24 16:06 Ali777666

Thanks for input. I will look into it.

absar0920 avatar Jun 25 '24 04:06 absar0920