Closed iyamk closed 10 months ago
Do you have any other GenericmessageCommand.php files anywhere within your custom commands folder?
There can only be one, as otherwise they will be overriding each other.
Do you have any other GenericmessageCommand.php files anywhere within your custom commands folder?
There can only be one, as otherwise they will be overriding each other.
I have already figured out to add a folder in the path
$telegram->addCommandsPaths([
__DIR__.'/Commands'
]);
Other working bot examples help me and the documentation is very poor
🐞 Bug Report
Required Information
{...}
Summary
I made a simple bot and it doesn't work. I need to process any commands in GenericCommand.php file
Current behaviour
Commands don't work! the request comes to the server without problems
How to reproduce
My Code
hook.php:
File Commands/GenericCommand.php:
File Commands/Message/GenericmessageCommand.php:
composer.json:
Expected behaviour
This should work as an echo bot and also throw an error on unknown commands!