core
core copied to clipboard
Message processing
Hello everyone, how can I handle regular messages from users? I don't need to process the command.
I need to process for example the message "Hello" and reply to it "Hello, I'm a bot"
https://prnt.sc/rk527uH5xKCp
You will need the GenericmessageCommand.php from the example bot
You will need the GenericmessageCommand.php from the example bot
I tried to check it out. When I tried to output what data is coming to this file, it just didn't output anything.
Same issue
You will need the GenericmessageCommand.php from the example bot
I tried to check it out. When I tried to output what data is coming to this file, it just didn't output anything.
how does your commandfile to send the callbackquery look like ?
did you try to use the inlinekeyboad command file from the example bot ?
Same I do have. The file GenericmessageCommand.php itself was copied from src into my commands folder. I've tried to log getMessage or simply print a string to log in execute function - nothing happens.
Same I do have. The file GenericmessageCommand.php itself was copied from src into my commands folder. I've tried to log getMessage or simply print a string to log in execute function - nothing happens.
Please open your own Issue with your issue
Hello everyone, how can I handle regular messages from users? I don't need to process the command.
I need to process for example the message "Hello" and reply to it "Hello, I'm a bot"
https://prnt.sc/rk527uH5xKCp
Did you try it in a groupchat? or in a private chat?
okay I think I figured it out. Leave only 1 genericmessagecommand. so if you copied all comands from /Commands to /CustomCommands, you need to move out or remove /Payments, /ServiceMessage, /Group, /Conversation, because they all have the same class