Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
May 6, 2025
Merged

Api 9.0 general #4782

merged 8 commits into from
May 6, 2025

Conversation

Bibo-Joshi
Copy link
Member

No description provided.

@Bibo-Joshi Bibo-Joshi marked this pull request as ready for review May 4, 2025 19:17
Copy link

@Copilot Copilot AI left a 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

Copy link
Member

@aelkheir aelkheir left a 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 :)

@Bibo-Joshi Bibo-Joshi merged commit 9387e9b into api_9.0 May 6, 2025
25 of 26 checks passed
@Bibo-Joshi Bibo-Joshi deleted the api_9.0-general branch May 6, 2025 05:55
@aelkheir aelkheir mentioned this pull request May 12, 2025
35 tasks
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy