XEP 0313¶
-
class
slixmpp.plugins.xep_0313.
XEP_0313
(xmpp, config=None)[source]¶ XEP-0313 Message Archive Management
-
retrieve
(jid=None, start=None, end=None, with_jid=None, ifrom=None, reverse=False, timeout=None, callback=None, iterator=False, rsm=None)[source]¶ Send a MAM query and retrieve the results.
- Parameters
jid (JID) – Entity holding the MAM records
start,end (datetime) – MAM query temporal boundaries
with_jid (JID) – Filter results on this JID
ifrom (JID) – To change the from address of the query
reverse (bool) – Get the results in reverse order
timeout (int) – IQ timeout
callback (func) – Custom callback for handling results
iterator (bool) – Use RSM and iterate over a paginated query
rsm (dict) – RSM custom options
- Return type
Awaitable
-
stanza
= <module 'slixmpp.plugins.xep_0313.stanza' from '/home/docs/checkouts/readthedocs.org/user_builds/slixmpp/checkouts/slix-1.6.0/slixmpp/plugins/xep_0313/stanza.py'>¶
-
Stanza elements¶
Slixmpp: The Slick XMPP Library Copyright (C) 2012 Nathanael C. Fritz, Lance J.T. Stout This file is part of Slixmpp.
See the file LICENSE for copying permissio
-
class
slixmpp.plugins.xep_0313.stanza.
Fin
(xml=None, parent=None)[source]¶ -
name
= 'fin'¶
-
namespace
= 'urn:xmpp:mam:2'¶
-
plugin_attrib
= 'mam_fin'¶
-
-
class
slixmpp.plugins.xep_0313.stanza.
MAM
(xml=None, parent=None)[source]¶ -
-
interfaces
= {'end', 'queryid', 'results', 'start', 'with'}¶
-
name
= 'query'¶
-
namespace
= 'urn:xmpp:mam:2'¶
-
plugin_attrib
= 'mam'¶
-
setup
(xml=None)[source]¶ Initialize the stanza’s XML contents.
Will return
True
if XML was generated according to the stanza’s definition instead of building a stanza object from an existing XML object.- Parameters
xml – An existing XML object to use for the stanza’s content instead of generating new XML.
-
sub_interfaces
= {'end', 'start', 'with'}¶
-