async fn attempt_mailbox_delivery(
destination: &str,
message: &Message,
friend: &Friend,
context: &CommandContext,
) -> Result<()>Expand description
Attempts to deliver a message via mailbox providers.
If direct delivery fails, this function tries to find and use mailbox providers to store the message for the recipient.
§Arguments
destination- The display name or PeerId of the recipient.message- The message to deliver.friend- TheFriendobject of the recipient.context- TheCommandContextfor network interaction and chat output.
§Errors
This function returns an error if network communication or mailbox interaction fails.