-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix: ScheduleMessage not returning scheduled_message_id #1153
Conversation
This would be amazing to have - there's no way around actually deleting this message. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we get this up?
@hussachai any chance you could fix the merge conflicts that are currently blocking this PR? Would love to see this bug fix merged at some point 😄 |
Absolutely! It’s a simple PR. I can’t believe it’s already been about 2 years. 😄 |
I really hope this is reviewed soon. A much needed feature |
Indeed, thank you @hussachai for putting this together! |
I'd like to introduce the fix for
ScheduledMessage
API. Currently, it doesn't return scheduled_message_id where this ID is needed for cancelling the scheduled message. My change is the least intrusive I could think of. It doesn't introduce any new field or adding new API. Basically, this change should be backward compatible. It is based on the fact that the API chat.postMessage doesn't returnscheduled_message_id
and the API chat.scheduledMessage doesn't return eithermessage.ts
orts
. We just need to check the presence of this field and determine the caller API based on that.Existing code shouldn't break because the
timestamp
is always an empty string forScheduledMessage
API.Now it will return
scheduled_message_id
in place oftimestamp
.SendMessage
should remain the same.Pull Request Guidelines
These are recommendations for pull requests.
They are strictly guidelines to help manage expectations.
PR preparation
Run
make pr-prep
from the root of the repository to run formatting, linting and tests.Should this be an issue instead
API changes
Since API changes have to be maintained they undergo a more detailed review and are more likely to require changes.
Examples of API changes that do not meet guidelines: