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.
Currently,
message.serviceis a boolean telling you whether the current message is a service message or not, but doesn't tell anything about the type (https://docs.pyrogram.org/telegram/base/message-action). One issue with this is when, for example, a pinned message is deleted immediately and the service message will hold no pinned message. Storing a string from an enum would be better (something like "pin", "phone_call", "screenshot_taken", "chat_edit_photo", ...).