Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
The new file IDs from the bot API aren't working #370
Comments
|
Firstly I suggest wrapping the whole traceback in triple backticks
or indent everything by 4 spaces
Secondly, that is not a valid FileID anyway. FileIDs are shorter than that. |
I got the sticker ID using the @idstickerbot bot |
I have been wrong. Sorry. @delivrance explained me, that you have one of the newer file_ids that has the file_ref embedded. He can explain you more about it. |
Ok, thx. I'll wait for a response from @deliverance |
|
@AdmAlexus Thanks for pointing this out. Unfortunately Telegram changed the file IDs format again (and without prior clear notice) and Pyrogram cannot yet understand the one you passed, which I assume you obtained from the bot API. However, I have already successfully reverse engineered the new file id format in order to create a compatible and working version using the older one for a popular bot I'm running. I will embed changes as well as (probably) a way to convert new to old file IDs into the library once I have some little free time. |
|
Fixed. Old and new file ids are now fully working and can be used in Pyrogram from the Bot API and vice-versa. |
Checklist
pip3 install -U https://github.com/pyrogram/pyrogram/archive/develop.zipand reproduced the issue using the latest development version.Description
In stable and develop version sticker is not send. Version Pyrogram: 0.16.0
Steps to Reproduce
app.send_sticker('me', 'CAACAgIAAxkBAAIpEl5MpSuhB_3dLRB-1sztf9FQ4N4qAAKAAQACgD8HKBYReKQerq-PGAQ')Traceback