I've modified the Help command to my needs and my expectation is that any text that is typed and sent directly to the Bot in a 1:1 space, the help command, is sent back to them. This works great, but if a message is sent with an attachment (such as an image, gif, pdf, or other file) the Bot seems to ignore the message, and it does not even show anything in the logs.
The expected behavior would be for the attachment to be ignored and the help command is returned.
What I Did
When a message is sent directly to the bot, here is the console logs:
2023-01-10 15:50:19 [INFO] [webex_bot.webex_bot.webex_bot.process_incoming_message]:198 Message from email@domain.com: Webex Teams Message:
{
"id": "Y2lzY29zcGFy_______REDACTED___________TkzNDhm",
"roomId": "Y2lzY29zcG_____REDACTED____TExOWI2OTA1MDkx",
"roomType": "direct",
"text": "ThisIsATest",
"personId": "Y2lzY29zcGFya____REDACTED_____UtOGE0Yy03N2RjNjc4OTAzYmM",
"personEmail": "email@domain.com",
"created": "2023-01-10T21:50:18.574Z"
}
2023-01-10 15:50:19 [INFO] [webex_bot.webex_bot.webex_bot.process_raw_command]:216 New user_command: thisisatest
2023-01-10 15:50:19 [INFO] [webex_bot.webex_bot.webex_bot.process_raw_command]:217 is_card_callback_command: False
2023-01-10 15:50:19 [WARNING] [webex_bot.webex_bot.webex_bot.process_raw_command]:236 Did not find command for thisisatest. Default to help card.
This is the expected behavior. When a message is sent with an attachment, I do not see any output in the console logs so it appears that the Bot is not listening for that type of message ("Message with attachment?" or other. is it the case that a message with an attachment is not considered a "command"? Any way to change this behavior?
I'm not too familiar with Python, so I appreciate any assistance! thank you!
Description
I've modified the Help command to my needs and my expectation is that any text that is typed and sent directly to the Bot in a 1:1 space, the help command, is sent back to them. This works great, but if a message is sent with an attachment (such as an image, gif, pdf, or other file) the Bot seems to ignore the message, and it does not even show anything in the logs.
The expected behavior would be for the attachment to be ignored and the help command is returned.
What I Did
When a message is sent directly to the bot, here is the console logs:
This is the expected behavior. When a message is sent with an attachment, I do not see any output in the console logs so it appears that the Bot is not listening for that type of message ("Message with attachment?" or other. is it the case that a message with an attachment is not considered a "command"? Any way to change this behavior?
I'm not too familiar with Python, so I appreciate any assistance! thank you!