Bibo-Joshi · GitHub

Merged

Merged

Conversation

@Bibo-Joshi

@Bibo-Joshi

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

@Bibo-Joshi

@Bibo-Joshi

Closed

35 tasks

Labels

None yet

Read the original on github.com ↗