Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more useful information for service messages #483

Open
delivrance opened this issue Sep 2, 2020 · 0 comments
Open

Add more useful information for service messages #483

delivrance opened this issue Sep 2, 2020 · 0 comments

Comments

@delivrance
Copy link
Member

@delivrance delivrance commented Sep 2, 2020

Currently, message.service is 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", ...).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.