10-13-2021 11:24 AM
Hello,
I've got a problem while creating a bot.
Messages sent to an offline user arrive without formatting.
But, if user A sends a link to user B (offline), html tags remain.
In the message sent by the bot, all links to styles, button elements are removed, etc.
Of course, I can cache messages on the bot's side, but it's not the best solution. And in this solution the user's status does not change immediately.
Thanks for any help
10-13-2021 11:05 PM
I found the reason why markup in offline posts doesn't work.
The bot (bot@acme.com) is included in the whitelist and sends a message to the user test@acme.com
Header:
<message from="bot@acme.com/bot" to="test@acme.com" type="chat" xml:lang="en" xmlns="jabber:client">
From offline, the test user receives a message with the added tag:
<x from="test@acme.com" stamp="20211014T05:39:26" xmlns="jabber:x:delay">
And the jabber identifies the sender as test@acme.com, not bot@acme.com. And this user is not in the bots whitelist.
But there is still a question: how to avoid this)
10-13-2021 11:07 PM - edited 10-13-2021 11:09 PM
Double posted, sorry
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