slidge.core.mixins.recipient#

Module Contents#

Classes#

class slidge.core.mixins.recipient.ReactionRecipientMixin[source]#
REACTIONS_SINGLE_EMOJI = False[source]#
xmpp: slidge.core.gateway.BaseGateway[source]#
async restricted_emoji_extended_feature()[source]#
async available_emojis(legacy_msg_id=None)[source]#

Override this to restrict the subset of reactions this recipient can handle.

Returns:

A set of emojis or None if any emoji is allowed

Parameters:

legacy_msg_id (Optional[slidge.util.types.LegacyMessageType]) –

Return type:

Optional[set[str]]

class slidge.core.mixins.recipient.ThreadRecipientMixin[source]#
async create_thread(xmpp_id)[source]#
Parameters:

xmpp_id (str) –

Return type:

Union[int, str]