Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added full support for non-premium users #156

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

absar0920
Copy link

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.

@Ali777666
Copy link

An error occured while splitting the file

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

@absar0920
Copy link
Author

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

@Ali777666
Copy link

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

@absar0920
Copy link
Author

Thanks for input. I will look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants