feat: add Defaults.business_connection_id support#5097
feat: add Defaults.business_connection_id support#5097Francluob wants to merge 3 commits intopython-telegram-bot:masterfrom
Conversation
- Add business_connection_id parameter to Defaults class - Update all send_* methods to use ODVInput[str] for business_connection_id - This allows setting a default business_connection_id via Defaults mechanism - Follows the same pattern as other defaults like parse_mode and disable_notification Closes python-telegram-bot#4193
- Use DefaultValue.get_value() to extract str | None from ODVInput[str] - Fixes type incompatibility when assigning business_connection_id
|
hello @Bibo-Joshi |
There was a problem hiding this comment.
Hi. Thanks for your PR.
The changes look ok at first glance. However, we'll need unit tests for all modified bot methods ensuring that the defaults values are passed correctly. Please have a look at e.g.
python-telegram-bot/tests/test_bot.py
Lines 2500 to 2523 in 8511941
or one of the many other test_*_default_* tests on how they use parametrization for the tests.
Moreover, I'll to put this on hault hold until after #5078 is merged since Bot API 9.3 adds new methods with business_connection_id parameters.
- Replace hardcoded version number with NEXT.VERSION placeholder - Follows project standard for version documentation
sounds fair, please ping me when you merge #5078 |
|
@Francluob you can subscribe to the PR, then you'll be notified :) |
|
v22.6 is out, including #5078 :) |
Closes #4193
Contribution by Gittensor, see my contribution statistics at https://gittensor.io/miners/details?githubId=11581451