Trait MediaMessage

Source
pub trait MediaMessage: Message {
    // Required methods
    fn reply_to(&self) -> Option<&Message>;
    fn author_signature(&self) -> Option<&str>;
    fn reply_markup(&self) -> Option<&Keyboard>;
    fn via_bot(&self) -> Option<&User>;
}
Expand description

A general trait for all non-service messages.

Required Methods§

Source

fn reply_to(&self) -> Option<&Message>

The replied message.

Source

fn author_signature(&self) -> Option<&str>

The author’s signature, if enabled for the channel.

Source

fn reply_markup(&self) -> Option<&Keyboard>

The inline keyboard attached to the message.

Source

fn via_bot(&self) -> Option<&User>

The bot via which the message was sent.

Implementors§