07-14-2022 03:39 AM
Hi, my app has been working for many months, now I am facing the problem with deleting the message that should be deleted by bot. I am tring to delete the message but receive 404 and "Unable to delete message". I have the correct message id as usual, message is still present in the room and I am able to get the message detail by API.
What could be a reason that I can GET the message but not able to DELETE it, while the message is created by the bot?
The problem is with one specific message.
07-14-2022 03:41 AM - edited 07-14-2022 03:44 AM
Hi @krzysztof Suwaj,
Since the message has been created by the Bot, then you would not be able to Delete the message.
You should use the Bot token to get the message deleted.
So, from the provided information - we believe currently the token is used which is yours, and that's why the Bot message deletion is throwing the error.
However, since you're active part of that room/space already, that's why you're able to read the messages via GET request though.
Let us know for any further queries on this or, share the details to devsupport@webex.com so that we can check on it further.
Thank you!
Sandip
07-14-2022 03:52 AM
Reply from @krzysztof Suwaj
Yes, certainly, I use BOT token to delete the message as usual. The next message I create in the same way I can easily delete by this token.
07-14-2022 03:59 AM
So, basically the messages which are created by the Bot, those should be able to be deleted by the Bot token and the messages created by the individual users, those can be deleted by the Individual Users' token.
However the reverse is not possible in both cases.
If the message was created by the Bot, however if it's not getting deleted by the Bot token, then we need to look at it further.
In that case, kindly share the details to devsupoort@webex.com with Bot Name, Bot ID, current Bot Token, Bot messageId, API Request Payload for deletion that you're sending, and the trackingId with the Error
This would help us to investigate on this further.
Thank you!
Sandip
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide