XEP 0439

1.7 Documentation

«  XEP 0437   ::   Contents   ::   XEP 0444  »

XEP 0439

class slixmpp.plugins.xep_0439.XEP_0439(xmpp, config=None)[source]

XEP-0439: Quick Response

ask_for_actions(mto, body, actions, mtype='chat', lang=None, *, mfrom=None)[source]

Send a message with a set of actions.

Parameters
  • mto (JID) – The JID of the entity which will receive the message

  • body (str) – The message body of the question

  • str]] actions (Iterable[Tuple[str,) – A set of tuples containing (action, label) for each action

  • mtype (str) – The message type

  • lang (str) – The lang of the message (if not use, the default for this session will be used.

ask_for_response(mto, body, responses, mtype='chat', lang=None, *, mfrom=None)[source]

Send a message with a set of responses.

Parameters
  • mto (JID) – The JID of the entity which will receive the message

  • body (str) – The message body of the question

  • str]] responses (Iterable[Tuple[str,) – A set of tuples containing (value, label) for each response

  • mtype (str) – The message type

  • lang (str) – The lang of the message (if not use, the default for this session will be used.

stanza = <module 'slixmpp.plugins.xep_0439.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.7.0/slixmpp/plugins/xep_0439/stanza.py'>

Stanza elements

Slixmpp: The Slick XMPP Library Copyright (C) 2020 Mathieu Pasquet <mathieui@mathieui.net> This file is part of Slixmpp.

See the file LICENSE for copying permissio

class slixmpp.plugins.xep_0439.stanza.Action(xml=None, parent=None)[source]
interfaces = {'id', 'label'}
name = 'action'
namespace = 'urn:xmpp:tmp:quick-response'
plugin_attrib = 'action'
class slixmpp.plugins.xep_0439.stanza.ActionSelected(xml=None, parent=None)[source]
interfaces = {'id'}
name = 'action-selected'
namespace = 'urn:xmpp:tmp:quick-response'
plugin_attrib = 'action_selected'
class slixmpp.plugins.xep_0439.stanza.Response(xml=None, parent=None)[source]
interfaces = {'label', 'value'}
name = 'response'
namespace = 'urn:xmpp:tmp:quick-response'
plugin_attrib = 'response'
slixmpp.plugins.xep_0439.stanza.register_plugins()[source]

«  XEP 0437   ::   Contents   ::   XEP 0444  »