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

pub trait Context: Send + Sync + Sealed + 'static {
    fn bot(&self) -> &Bot;
}

A general trait for all contexts.

Required methods

fn bot(&self) -> &Bot[src]

A bot for calling API without information inference.

Loading content...

Implementors

impl Context for Animation[src]

impl Context for AnyUpdate[src]

impl Context for Audio[src]

impl Context for ChangedAutoDeleteTimer[src]

impl Context for ChatMember[src]

impl Context for ChosenInline[src]

impl Context for Command[src]

impl Context for ConnectedWebsite[src]

impl Context for Contact[src]

impl Context for CreatedGroup[src]

impl Context for DeletedChatPhoto[src]

impl Context for Dice[src]

impl Context for Document[src]

impl Context for EditedAnimation[src]

impl Context for EditedAudio[src]

impl Context for EditedCommand[src]

impl Context for EditedDocument[src]

impl Context for EditedLocation[src]

impl Context for EditedPhoto[src]

impl Context for EditedText[src]

impl Context for EditedVideo[src]

impl Context for EndedVoiceChat[src]

impl Context for Game[src]

impl Context for Inline[src]

impl Context for InlineDataCallback[src]

impl Context for InlineGameCallback[src]

impl Context for InvitedVoiceChatParticipants[src]

impl Context for Invoice[src]

impl Context for LeftMember[src]

impl Context for Location[src]

impl Context for MessageDataCallback[src]

impl Context for MessageGameCallback[src]

impl Context for Migration[src]

impl Context for MyChatMember[src]

impl Context for NewChatPhoto[src]

impl Context for NewChatTitle[src]

impl Context for NewMembers[src]

impl Context for Passport[src]

impl Context for Payment[src]

impl Context for Photo[src]

impl Context for PinnedMessage[src]

impl Context for Poll[src]

impl Context for PollAnswer[src]

impl Context for PreCheckout[src]

impl Context for ProximityAlert[src]

impl Context for ScheduledVoiceChat[src]

impl Context for Shipping[src]

impl Context for StartedVoiceChat[src]

impl Context for Sticker[src]

impl Context for Text[src]

impl Context for Unhandled[src]

impl Context for UpdatedPoll[src]

impl Context for Venue[src]

impl Context for Video[src]

impl Context for VideoNote[src]

impl Context for Voice[src]

Loading content...