Dankoy / jforwarder

Telegram bot for coub.com communities, tags and channels subscriptions.
https://t.me/coub_forwarder_bot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

fix: bot tries to reply on any messages from users #113

Closed Dankoy closed 5 months ago

Dankoy commented 5 months ago

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: