[][src]Trait telegram_bot::util::messages::MessageText

pub trait MessageText {
    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.

Required methods

fn text<'a>(&'a self) -> Option<String>[src]

Obtain text from a message if available.

Loading content...

Implementors

impl MessageText for MessageKind[src]

impl MessageText for MessageOrChannelPost[src]

impl MessageText for ChannelPost[src]

impl MessageText for Message[src]

Loading content...