cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements
163
Views
0
Helpful
2
Replies
AlexS2
Beginner

Jabber bot

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

2 REPLIES 2
AlexS2
Beginner

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)

AlexS2
Beginner

Double posted, sorry

Create
Recognize Your Peers
Content for Community-Ad