vasusen-code / SaveRestrictedContentBot

Stable telegram bot to save Restricted content with custom thumbnail support.
GNU Affero General Public License v3.0
1.53k stars 2.74k forks source link

Added full support for non-premium users #156

Open absar0920 opened 1 month ago

absar0920 commented 1 month ago

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

Rationale

Testing

Ali777666 commented 2 weeks ago

An error occured while splitting the file

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

absar0920 commented 2 weeks ago

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

Ali777666 commented 1 week ago

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

absar0920 commented 1 week ago

Thanks for input. I will look into it.