Expand description
ยงDownload large messages manually.
Modulesยง
- post_
msg_ ๐metadata
Enumsยง
- Download
State - Download state of the message.
Constantsยง
- PRE_
MSG_ ๐ATTACHMENT_ SIZE_ THRESHOLD - From this point onward outgoing messages are considered large and get a Pre-Message, which announces the Post-Message. This is only about sending so we can modify it any time. Current value is a bit less than the minimum auto-download setting from the UIs (which is 160 KiB).
- PRE_
MSG_ ๐SIZE_ WARNING_ THRESHOLD - Max size for pre messages. A warning is emitted when this is exceeded.
Functionsยง
- available_
post_ ๐msgs_ contains_ rfc724_ mid - delete_
from_ ๐available_ post_ msgs - delete_
from_ ๐downloads - download_
known_ ๐post_ messages_ without_ pre_ message - Downloads known post-messages without pre-messages in order to guard against lost pre-messages.
- download_
msg ๐ - Actually downloads a message partially downloaded before if the message is available on the
session transport, in which case returns
Some. If the message is available on another transport, returnsNone. - download_
msgs ๐ - msg_
is_ ๐downloaded_ for - set_
state_ ๐to_ failure