- Notifications
You must be signed in to change notification settings - Fork5.7k
Api 9.0 general#4782
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Api 9.0 general#4782
Uh oh!
There was an error while loading.Please reload this page.
Conversation
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.
Pull Request Overview
This PR introduces support for a new update type, PaidMessagePriceChanged, across tests, filters, constants, and the Message API. Key changes include new tests for PaidMessagePriceChanged, updated constants to handle increased maximum star counts, and integration of the new field in message objects and filters.
Reviewed Changes
Copilot reviewed 10 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
tests/test_paidmessagepricechanged.py | New tests for the PaidMessagePriceChanged feature |
tests/test_message.py | Added references and test cases for paid_star_count and paid_message_price_changed |
tests/test_constants.py | Updated constant values and added new keys for paid fields |
tests/ext/test_filters.py | New filter tests for the PAID_MESSAGE_PRICE_CHANGED update |
telegram/ext/filters.py | Introduced the PAID_MESSAGE_PRICE_CHANGED filter |
telegram/constants.py | Increased maximum values for star counts and updated version notes |
telegram/_paidmessagepricechanged.py | New module implementing PaidMessagePriceChanged |
telegram/_message.py | Updated Message class to include new paid_message_price_changed and paid_star_count fields |
telegram/init.py | Updated exports to include the new PaidMessagePriceChanged module |
changes/unreleased/*.toml | Changelog entry updating Bot API 9.0 changes |
Files not reviewed (2)
- docs/source/telegram.at-tree.rst: Language not supported
- docs/source/telegram.paidmeessagepricechanged.rst: Language not supported
Comments suppressed due to low confidence (1)
telegram/_message.py:449
- The parameter and docstring use 'paid_start_count' while the attribute in the code is named 'paid_star_count'. Consider renaming the parameter and updating the docstring to maintain consistency.
paid_start_count (:obj:`int`, optional): The number of Telegram Stars that were paid by the
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.
Clean! tried to find something but failed successfully :)
9387e9b
intoapi_9.0Uh oh!
There was an error while loading.Please reload this page.
No description provided.