slidgnal.util#
Classes#
A file attachment to a message |
Functions#
|
|
|
|
|
Module Contents#
- class slidgnal.util.AttachmentSenderMixin(*a, **kw)[source]#
Bases:
slidge.core.mixins.message.ContentMessageMixin
- session: slidgnal.session.Session[source]#
- async __get_reference(quote)[source]#
- Parameters:
quote (Optional[aiosignald.generated.JsonQuotev1]) –
- class slidgnal.util.Attachment[source]#
Bases:
slidge.util.types.LegacyAttachment
A file attachment to a message
At the minimum, one of the
path
,steam
,data
orurl
attribute has to be setTo be used with
LegacyContact.send_files()
orLegacyParticipant.send_files()
- static from_json(json)[source]#
- Parameters:
json (Union[aiosignald.generated.JsonAttachmentv1, aiosignald.generated.JsonAttachmentv0]) –
- slidgnal.util.get_filename(attachment)[source]#
- Parameters:
attachment (Union[aiosignald.generated.JsonAttachmentv1, aiosignald.generated.JsonAttachmentv0]) –