slidge.util.types
#
Module Contents#
Classes#
A "message reply", ie a "quoted message" (XEP-0461) |
|
A file attachment to a message |
Attributes#
- class slidge.util.types.MessageReference[source]#
Bases:
Generic
[LegacyMessageType
]A “message reply”, ie a “quoted message” (XEP-0461)
At the very minimum, the legacy message ID attribute must be set, but to ensure that the quote is displayed in all XMPP clients, the author must also be set. The body is used as a fallback for XMPP clients that do not support XEP-0461 of that failed to find the referenced message.
- class slidge.util.types.LegacyAttachment[source]#
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()
- path: pathlib.Path | str | None[source]#
- caption: str | None[source]#
A caption for this specific image. For a global caption for a list of attachments, use the
body
parameter ofAttachmentMixin.send_files()