Extend Support for Convenience Types in Bot Methods #4580
Labels
⚙️ bot-api
affected functionality: bot-api
🔌 enhancement
pr description: enhancement
⚙️ tests
affected functionality: tests
⚙️ type-hinting
affected functionality: type-hinting
What kind of feature are you missing? Where do you notice a shortcoming of PTB?
In
test_official
we currently allow convenience input types only forsend_*
methods:python-telegram-bot/tests/test_official/arg_type_checker.py
Lines 174 to 178 in 1511237
python-telegram-bot/tests/test_official/exceptions.py
Lines 39 to 48 in 1511237
Removing the
obj.__name__.startswith("send")
reveals that there are a few more parameters that could use convenience types.Describe the solution you'd like
obj.__name__
checkDescribe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: