Merge pull request #1 from sameer-tech-solution/sameer-tech-solution-… - #3
Open
sameer-tech-solution wants to merge 3 commits into
Open
sameer-tech-solution wants to merge 3 commits into
sameer-tech-solution wants to merge 3 commits into
Conversation
…patch-1 Add comment for CodeRabbit in Procfile
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@coderabbitai I am opening this PR to fix the issue where the bot fails to download/forward files from Private Channels and Restricted Content channels on Heroku.
Current Status:
I have already generated a Pyrogram StringSession and securely added it to my Heroku Config Vars as STRING. I am a member of the private channel, but the bot is still failing.
What I need you to do:
Please analyze the repository (especially shared_client.py, plugins/batch.py, and plugins/settings.py) and provide the exact code changes to fix this:
User Client Initialization: Ensure the User Client reads the STRING from environment variables and uses in_memory=True (to survive Heroku's ephemeral storage).
Strict Private Channel Handling: Update get_uclient() and get_msg() in batch.py so that it strictly uses the User Client for private links (t.me/c/...). It must never fall back to the bot client for private channels.
Clear Error Exceptions: If the User Client is missing, invalid, or hits a FloodWait / RPCError, raise a clear RuntimeError so I can see it in Heroku logs, rather than failing silently.
Please provide the commit suggestions so I can directly merge them.