Skip to content

Conversation

Bibo-Joshi
Copy link
Member

TG tried to sneak this past us by not mentioning it in the changelog, but I saw it in test official after expecting that the method checks should run fine on the #4935 branch … In the waybackmachine, I can't see any mention of it at the start auf august.

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 adds the message_thread_id parameter to the send_paid_media method across the Telegram Bot API wrapper. The change addresses a parameter that was quietly added to the official Telegram Bot API without being mentioned in the changelog.

  • Adds message_thread_id parameter to all send_paid_media method signatures
  • Updates method implementations to pass through the new parameter
  • Adds test coverage for the new parameter with proper type annotations

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/telegram/_bot.py Adds message_thread_id parameter to core send_paid_media method with documentation
src/telegram/_chat.py Adds parameter to Chat class send_paid_media method
src/telegram/_message.py Adds parameter to Message class reply_paid_media method with thread ID parsing logic
src/telegram/ext/_extbot.py Adds parameter to ExtBot class send_paid_media method
tests/test_message.py Adds test annotation override for the new parameter
changes/unreleased/4911.kiF45Y4cfPGMq5cuLpa5da.toml Updates changelog entry to include this PR

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.

Nice catch! :shipit:

@Bibo-Joshi Bibo-Joshi merged commit b318594 into api-9.2-central Sep 8, 2025
4 of 26 checks passed
@Bibo-Joshi Bibo-Joshi deleted the api-9.2-central-spm-mtid branch September 8, 2025 04:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants