I am encountering an issue with my Python script that uses Pyrogram to interact with a private Telegram channel of which I am a member of. I derived the peer id from the URL of the private channel from Telegram Web (e.g.: https://web.telegram.org/k/#-2200488212 ). It used to work fine with private channels that were created some while ago (I assume telegram has created an update for private channels), but Pyrogram is unable to work with private channels that were created recently, specifically it says invalid peer id. It did work with peer ids that looked something like this: -10051622484 – with a “-100” in the beginning. The recent private channels/groups do not have the “-100” before their peer id, e.g.: -2200488212 . IDK if these are somehow related. Maybe I am wrong, however the same script worked fine with other channels, but struggles with this one.
How to fix this issue?
I looked up a similar issue in the youtube here is the video, a guy uses pyrofork instead of pyrogram in his code.
I tried to install the pyrofork into my virtual environment where my code works – did not help. Uninstalled the pyrogram and left only the pyrofork – encountered an error.