fbradyirl / webex_bot

Python package for a Webex Bot based on websockets.
MIT License
68 stars 44 forks source link

Bot not receiving messages #12

Closed 0x2142 closed 2 years ago

0x2142 commented 2 years ago

Description

Hi there! I am trying to get a bot up and running with a non-cisco webex account - but it seems the bot is never receiving messages.

I have previously used this module to create a bot, but it was all using my cisco.com webex account - and I never hit any issues. However, I am trying to create a bot using a personal email/webex account & it doesn't seem to be working.

What I Did

  1. Created new webex bot API token on the Webex Developer site, using my personal email/webex account
  2. pip install webex_bot
  3. Use basic code snippet below to test
  4. Send message from @cisco.com account - Bot receives message & responds with help card
  5. Send message from non-cisco.com account - Bot never receives message

I also tried enabling debug logging on the bot, but I am never seeing a message come in.

Additionally, if I create a group room with my personal & cisco.com accounts in it - The bot will respond then to a direct @ message from my personal email. However, in a direct 1:1 space it seems the message never makes it to the bot.

from webex_bot.webex_bot import WebexBot
bot = WebexBot(api_token)
bot.run()
0x2142 commented 2 years ago

This seems to be a stange backend issue... If I use the Webex websocket test/demo page - I also never see the messages from my personal email/domain.

I signed up for another free developer account with a different personal email, and everything works fine.

Viadd commented 2 years ago

I also have this issue, however, even though I created several accounts I still have the problem, if there is another possible solution, I would be grateful if you could tell me about it.