matteridge.util

Attributes

T

Classes

UserMixin

Attachment

A file attachment to a message

Functions

_emoji_name_conversion(x)

emojize_single(x[, add_delimiters])

emojize_body(body)

demojize(emoji_char)

unset_to_none(x)

Module Contents

matteridge.util._emoji_name_conversion(x)[source]
Parameters:

x (str)

matteridge.util.emojize_single(x, add_delimiters=True)[source]
Parameters:

x (str)

matteridge.util.emojize_body(body)[source]
Parameters:

body (str)

matteridge.util.demojize(emoji_char)[source]
Parameters:

emoji_char (str)

class matteridge.util.UserMixin(*a, **kw)[source]

Bases: slidge.core.mixins.message.ContentMessageMixin

session: matteridge.session.Session[source]
mm_id: Callable[[], Awaitable[str]][source]
async send_mm_post(post, carbon=False, archive_only=False)[source]
Parameters:

post (matteridge.events.Post)

async update_reactions(legacy_msg_id, carbon=False)[source]
Parameters:
  • legacy_msg_id (str)

  • carbon (bool)

class matteridge.util.Attachment[source]

Bases: slidge.util.types.LegacyAttachment

A file attachment to a message

At the minimum, one of the path, steam, data or url attribute has to be set

To be used with LegacyContact.send_files() or LegacyParticipant.send_files()

static from_mm(info, data)[source]
Parameters:
  • info (mattermost_api_reference_client.models.FileInfo)

  • data (bytes)

matteridge.util.T[source]
matteridge.util.unset_to_none(x)[source]
Parameters:

x (Union[T, mattermost_api_reference_client.types.Unset])

Return type:

Union[T, None]