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

pub trait Message: Context {
    fn message_id(&self) -> Id;
fn from(&self) -> Option<&From>;
fn date(&self) -> i64;
fn chat(&self) -> &Chat; }

A general trait for all message contexts.

Required methods

fn message_id(&self) -> Id[src]

ID of the message.

fn from(&self) -> Option<&From>[src]

The author of the message.

fn date(&self) -> i64[src]

The timestamp of the message.

fn chat(&self) -> &Chat[src]

The chat to which the message was sent.

Loading content...

Implementors

impl Message for Animation[src]

impl Message for Audio[src]

impl Message for ChangedAutoDeleteTimer[src]

impl Message for Command[src]

impl Message for ConnectedWebsite[src]

impl Message for Contact[src]

impl Message for CreatedGroup[src]

impl Message for DeletedChatPhoto[src]

impl Message for Dice[src]

impl Message for Document[src]

impl Message for EditedAnimation[src]

impl Message for EditedAudio[src]

impl Message for EditedCommand[src]

impl Message for EditedDocument[src]

impl Message for EditedLocation[src]

impl Message for EditedPhoto[src]

impl Message for EditedText[src]

impl Message for EditedVideo[src]

impl Message for EndedVoiceChat[src]

impl Message for Game[src]

impl Message for InvitedVoiceChatParticipants[src]

impl Message for Invoice[src]

impl Message for LeftMember[src]

impl Message for Location[src]

impl Message for MessageDataCallback[src]

impl Message for MessageGameCallback[src]

impl Message for Migration[src]

impl Message for NewChatPhoto[src]

impl Message for NewChatTitle[src]

impl Message for NewMembers[src]

impl Message for Passport[src]

impl Message for Payment[src]

impl Message for Photo[src]

impl Message for PinnedMessage[src]

impl Message for Poll[src]

impl Message for ProximityAlert[src]

impl Message for ScheduledVoiceChat[src]

impl Message for StartedVoiceChat[src]

impl Message for Sticker[src]

impl Message for Text[src]

impl Message for Venue[src]

impl Message for Video[src]

impl Message for VideoNote[src]

impl Message for Voice[src]

Loading content...