pub trait MessageText {
// Required method
fn text<'a>(&'a self) -> Option<String>;
}
Expand description
A trait to obtain text from a message.
For example, this will return the text from text messages, or the caption of a photo.
pub trait MessageText {
// Required method
fn text<'a>(&'a self) -> Option<String>;
}
A trait to obtain text from a message.
For example, this will return the text from text messages, or the caption of a photo.