SleekXMPP icon indicating copy to clipboard operation
SleekXMPP copied to clipboard

Send XMPP message with custom element in message stanza using SleekXMPP

Open lxnx0 opened this issue 8 years ago • 1 comments

I'm developing a XMPP bot that will send/reply a message to the sender with a addition element as following

<message to="[email protected]" from="[email protected]">
  <my_element_1>foo</my_element_1> 
  <my_element_2>bar</my_element_2>
  <body>Hi!</body>
</message>

I've tried to used SleekXMPP Object, Iq, Message but not able to achieve the target. Beside, I also tried to use send_message method.

I'm not sure if my googling keyword is not correct but I'm not able to find any documentation or guide related to this. However, I did found guide that might be helpful for this related to plugin creation. Will be much appreciated if someone could help me on this.

Thank you

lxnx0 avatar May 12 '17 12:05 lxnx0

I shared the solution in this SO post.

http://stackoverflow.com/questions/43938116/send-xmpp-message-with-custom-element-in-message-stanza-using-sleekxmpp

aminyuddin avatar May 15 '17 01:05 aminyuddin