Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot not responding to messages with attachments (no log output either). #38

Open
brent20 opened this issue Jan 10, 2023 · 0 comments
Open

Comments

@brent20
Copy link

brent20 commented Jan 10, 2023

  • Webex Bot version: latest
  • Python version: 3.10.7
  • Operating System: Windows

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:

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant