D
D
Dmitry2019-12-06 15:47:24
XMPP
Dmitry, 2019-12-06 15:47:24

How to style the text displayed in a JABBER message?

I am making a bot for Ejabberd. XMPPHP is used.
How to make an interactive menu so that when you enter the command "?" displayed a menu with interactive elements rather than plain text

/cmd1 -- Action 1
/cmd2 -- Action 2
/cmd3 -- Action 3
...

So that when you click on the corresponding menu item, this command is immediately sent in response (or inserted into the message input field (so as not to type the command manually). As is done in Telegram bots, for example.
So far, I only get text

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2019-12-07
@begemot_sun

it all depends on the client and the bot. ejabberd itself is just an intermediary for passing messages from the bot to the client and back.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question