Fixed issue when bot tried to handle user commands with any message from it. Now bot validates text in messages, and if it is valid then it tries to handle it, if not (not starts with slash '/' or not exists in commands menu, then bot just ignores such messages.
Fixes #112
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
[x] Test reply on bot messages with random text. Bot should ignore it. In super groups and private chats.
[x] Test send in private chat with bot any text that is not valid. Bot ignores it.
Test Configuration:
Firmware version: MacOS 14.3 (23D56)
Hardware: Apple M1 Pro
SDK: Eclipse Temurin JDK 21.0.2+13-LTS
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules
[x] I have updated project version if release is planned
Description
Fixed issue when bot tried to handle user commands with any message from it. Now bot validates text in messages, and if it is valid then it tries to handle it, if not (not starts with slash '/' or not exists in commands menu, then bot just ignores such messages.
Fixes #112
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration: Firmware version: MacOS 14.3 (23D56) Hardware: Apple M1 Pro SDK: Eclipse Temurin JDK 21.0.2+13-LTS
Checklist: