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.
Add ability for MessageEntity objects to know how to get its own text out #412
Comments
|
Let me share this then: https://gist.github.com/b73f48bdd7d3a99cc1f95c3411c7cace |
|
(note that Pyrogram already handles utf-16-le enc/decoding, so it's just a matter of doing My original idea was to have something like |
|
If you're unhappy with that (which I understand), maybe just add a method that takes the message text. I'd be fine with that |
|
While you're at it, do you think this could benefit from some polymorphism? pyrogram/pyrogram/types/messages_and_media/message_entity.py Lines 45 to 46 in f3e515a |
Checklist