messlidger.util

Classes

Functions

get_shelf_path(user_bare_jid)

save_state(user_bare_jid, state)

is_group_thread(t)

Module Contents

messlidger.util.get_shelf_path(user_bare_jid)[source]
messlidger.util.save_state(user_bare_jid, state)[source]
Parameters:
  • user_bare_jid (str)

  • state (maufbapi.AndroidState)

class messlidger.util.FacebookMessage[source]
mid: str[source]
timestamp_ms: int[source]
class messlidger.util.Messages[source]
by_mid: collections.OrderedDict[str, FacebookMessage][source]
by_timestamp_ms: collections.OrderedDict[int, FacebookMessage][source]
__len__()[source]
add(m)[source]
Parameters:

m (FacebookMessage)

pop_up_to(approx_t)[source]
Parameters:

approx_t (int)

Return type:

FacebookMessage

messlidger.util.is_group_thread(t)[source]
Parameters:

t (maufbapi.types.mqtt.ThreadKey)

class messlidger.util.ChatterMixin(*a, **kw)[source]

Bases: slidge.core.mixins.attachment.AttachmentMixin

session: messlidger.session.Session[source]
async send_fb_message(msg, **kwargs)[source]
Parameters:

msg (maufbapi.types.mqtt.Message)

get_extensible_media(media)[source]
Parameters:

media (str)

Return type:

tuple[str, list[str]]

async get_attachment_url(attachment, thread_key, msg_id)[source]
Parameters:

attachment (maufbapi.types.mqtt.Attachment)

async send_fb_sticker(sticker_id, legacy_msg_id, **kwargs)[source]
Parameters:
  • sticker_id (int)

  • legacy_msg_id (str)