Merged
Conversation
Contributor
There was a problem hiding this comment.
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
aelkheir
approved these changes
May 4, 2025
Member
aelkheir
left a comment
There was a problem hiding this comment.
Clean! tried to find something but failed successfully :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.