pub async fn forward(&mut self, conversation_id: String) -> Result<Option<Message<T>>, WechatyError> {
        debug!("Message.forward(id = {}", self.id_);
        match self
            .ctx_
            .puppet()
            .message_forward(conversation_id.clone(), self.id())
            .await
        {
            Ok(Some(message_id)) => {
                info!("Message {} was forwarded to {}", self.id(), conversation_id);
                match self.ctx_.message_load(message_id.clone()).await {
                    Ok(message) => Ok(Some(message)),
                    Err(e) => {
                        error!("Failed to load forwarded message {}, reason: {}", message_id, e);
                        Ok(None)
                    }
                }
            }
            Ok(None) => Ok(None),
            Err(e) => {
                error!("Failed to forward message {}, reason: {}", self.id_, e);
                Err(WechatyError::from(e))
            }
        }
    }
/// Forward the current message to a conversation (contact or room).
Forward the current message to a conversation (contact or room).
Forward the current message to a conversation ( contact or room ) .
pub async fn forward(&mut self, conversation_id: String) -> Result<Option<Message<T>>, WechatyError> {
        debug!("Message.forward(id = {}", self.id_);
        match self
            .ctx_
            .puppet()
            .message_forward(conversation_id.clone(), self.id())
            .await
        {
            Ok(Some(message_id)) => {
                info!("Message {} was forwarded to {}", self.id(), conversation_id);
                match self.ctx_.message_load(message_id.clone()).await {
                    Ok(message) => Ok(Some(message)),
                    Err(e) => {
                        error!("Failed to load forwarded message {}, reason: {}", message_id, e);
                        Ok(None)
                    }
                }
            }
            Ok(None) => Ok(None),
            Err(e) => {
                error!("Failed to forward message {}, reason: {}", self.id_, e);
                Err(WechatyError::from(e))
            }
        }
    }
pub async fn forward ( & mut self , conversation_id : String ) -> Result < Option < Message < T > > , WechatyError > { debug ! ( " " self id_ ) ; match self . ctx_ . puppet ( ) . message_forward ( conversation_id . clone ( ) , self . id ( ) ) . await { Ok ( Some ( message_id ) ) => { info ! ( " " self id ( ) conversation_id ) ; match self . ctx_ . message_load ( message_id . clone ( ) ) . await { Ok ( message ) => Ok ( Some ( message ) ) , Err ( e ) => { error ! ( " " message_id e ) ; Ok ( None ) } } } Ok ( None ) => Ok ( None ) , Err ( e ) => { error ! ( " " self id_ e ) ; Err ( WechatyError :: from ( e ) ) } } }
Forward the current message to a conversation (contact or room).
Forward the current message to a conversation ( contact or room ) .
&mut self
conversation_id
String
&mut self
conversation_id
String