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 totitle
- The message title to sendbody
- The message body to send
Return value
Returns the generated reply message