Trait tbot::contexts::fields::MediaMessage[][src]

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

A general trait for all non-service messages.

Required methods

fn reply_to(&self) -> Option<&Message>[src]

The replied message.

fn author_signature(&self) -> Option<&str>[src]

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

fn reply_markup(&self) -> Option<&Keyboard>[src]

The inline keyboard attached to the message.

fn via_bot(&self) -> Option<&User>[src]

The bot via which the message was sent.

Loading content...

Implementors

impl MediaMessage for Animation[src]

impl MediaMessage for Audio[src]

impl MediaMessage for Command[src]

impl MediaMessage for ConnectedWebsite[src]

impl MediaMessage for Contact[src]

impl MediaMessage for Dice[src]

impl MediaMessage for Document[src]

impl MediaMessage for EditedAnimation[src]

impl MediaMessage for EditedAudio[src]

impl MediaMessage for EditedCommand[src]

impl MediaMessage for EditedDocument[src]

impl MediaMessage for EditedLocation[src]

impl MediaMessage for EditedPhoto[src]

impl MediaMessage for EditedText[src]

impl MediaMessage for EditedVideo[src]

impl MediaMessage for Game[src]

impl MediaMessage for Invoice[src]

impl MediaMessage for Location[src]

impl MediaMessage for Passport[src]

impl MediaMessage for Payment[src]

impl MediaMessage for Photo[src]

impl MediaMessage for Poll[src]

impl MediaMessage for Sticker[src]

impl MediaMessage for Text[src]

impl MediaMessage for Venue[src]

impl MediaMessage for Video[src]

impl MediaMessage for VideoNote[src]

impl MediaMessage for Voice[src]

Loading content...