Skip to content

Conversation

@wulan17
Copy link
Contributor

@wulan17 wulan17 commented Dec 20, 2023

Description

Because i put topics parameter before is_scheduled in Message._parse method, everytime client get UpdateNewScheduledMessage updates the is_scheduled field will always False
Add the parameter name fix the issue

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

I test using my private bot, before this fix everytime i scheduled a message the is_scheduled field always return False and after this fix its return True

Test Configuration

  • Operating System: Ubuntu 22.04
  • Python Version: 3.10

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • New and existing unit tests pass locally with my changes

…eduledMessage

Signed-off-by: wulan17 <wulan17@nusantararom.org>
@alissonlauffer
Copy link
Member

Thank you for your contribution!
Well, I think it's better to just pass all _parse arguments as keyword-only, to avoid future breakage when we add new arguments there.
I'll push the needed changes to your PR.

Copy link
Member

@HitaloM HitaloM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution, everything seems to be correct, the only thing missing is the news fragment for the changelog. @alissonlauffer could you do this?

@HitaloM HitaloM added bug Something is wrong enhancement New feature, request or code enhancement. labels Dec 21, 2023
Copy link
Member

@HitaloM HitaloM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now it's complete, great work from both of you. 🫡

@alissonlauffer alissonlauffer merged commit c65b033 into hydrogram:dev Jan 16, 2024
tangyoha pushed a commit to tangyoha/hydrogram that referenced this pull request Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something is wrong enhancement New feature, request or code enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants