core icon indicating copy to clipboard operation
core copied to clipboard

Message processing

Open sss1337xyz opened this issue 2 years ago • 7 comments

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

sss1337xyz avatar Aug 28 '22 15:08 sss1337xyz

You will need the GenericmessageCommand.php from the example bot

Hitmare avatar Aug 29 '22 01:08 Hitmare

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.

sss1337xyz avatar Aug 29 '22 12:08 sss1337xyz

Same issue

igorshirinkin avatar Aug 30 '22 16:08 igorshirinkin

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 ?

Hitmare avatar Sep 06 '22 07:09 Hitmare

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.

e-crewing avatar Sep 12 '22 20:09 e-crewing

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

Hitmare avatar Sep 13 '22 17:09 Hitmare

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?

Hitmare avatar Sep 13 '22 17:09 Hitmare

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

darknessproduction avatar Apr 08 '23 12:04 darknessproduction