Merged
Merged
Conversation
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_idparameter to allsend_paid_mediamethod 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 |
Labels
None yet