Please answer these questions before submitting your issue. Thanks!
- What version of pyTelegramBotAPI are you using?
4.7.0
- What OS are you using?
Win10
- What version of python are you using?
3.8.10
I have a proposal. Maybe it will be possible to implement following scenario:
- you decorate function with message_handler decorator;
- you use in the decorated function return statement with e.g. some text;
- this text is sent as a reply to the user, who triggered the decorated function by his/her message.
It will help to decrease code nesting in bots, which main purpose is to send something back to the user for each bot command.