attempt_mailbox_delivery

Function attempt_mailbox_delivery 

Source
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 - The Friend object of the recipient.
  • context - The CommandContext for network interaction and chat output.

§Errors

This function returns an error if network communication or mailbox interaction fails.