[ENHANCEMENT] Improve callback signature of shortcuts #2238
Labels
⚙️ documentation
affected functionality: documentation
📋 help-wanted
work status: help-wanted
🛠 refactor
change type: refactor
⚙️ type-hinting
affected functionality: type-hinting
We just pass kwargs and args to the underlying function call currently for maintenance easiness. This however means that type hinting/suggestions from IDEs don't live up to their full potential. One of ptb greatest feature are our shortcuts, sparing the developers a lot of time writing out user or chat ids etc. We should spend some time improving this part of our library in my opinion.
If we want to implement this feature, at least testing for it would be a requirement, so whenever we change the underlying functions or add new shortcuts, the test tells us that we have to change the type hints/docs/etc.
The text was updated successfully, but these errors were encountered: