Function kudubot_bindings::generate_reply [] [src]

pub fn generate_reply(message: &Message, title: &str, body: &str) -> Message

Generates a reply Message struct for a given Message. For this, the receiver and sender are flipped and the body as well as the title are replaced.

Arguments

  • message - The Message to reply to
  • title - The message title to send
  • body - The message body to send

Return value

Returns the generated reply message