cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
655
Views
5
Helpful
2
Replies

Jabber bot

AlexS2
Beginner
Beginner

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
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
Beginner

Double posted, sorry

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: