[][src]Trait tbot::contexts::traits::ChatMethods

pub trait ChatMethods<'a, C: 'static>: Sealed {
    fn delete_chat_photo(&'a self) -> DeleteChatPhoto<'a, C> { ... }
fn delete_chat_sticker_set(&'a self) -> DeleteChatStickerSet<'a, C> { ... }
fn delete_message(&'a self, message_id: Id) -> DeleteMessage<'a, C> { ... }
fn delete_this_message(&'a self) -> DeleteMessage<'a, C> { ... }
fn edit_message_caption(
        &'a self,
        message_id: Id,
        caption: impl Into<Text<'a>>
    ) -> EditMessageCaption<'a, C> { ... }
fn edit_message_location(
        &'a self,
        message_id: Id,
        location: (f64, f64)
    ) -> EditMessageLocation<'a, C> { ... }
fn edit_message_media(
        &'a self,
        message_id: Id,
        media: impl Into<EditableMedia<'a>>
    ) -> EditMessageMedia<'a, C> { ... }
fn edit_message_reply_markup(
        &'a self,
        message_id: Id,
        reply_markup: Keyboard<'a>
    ) -> EditMessageReplyMarkup<'a, C> { ... }
fn edit_message_text(
        &'a self,
        message_id: Id,
        text: impl Into<Text<'a>>
    ) -> EditMessageText<'a, C> { ... }
fn export_chat_invite_link(&'a self) -> ExportChatInviteLink<'a, C> { ... }
fn forward_here(
        &'a self,
        from_chat_id: impl ImplicitChatId<'a>,
        message_id: Id
    ) -> ForwardMessage<'a, C> { ... }
fn get_chat(&'a self) -> GetChat<'a, C> { ... }
fn get_chat_administrators(&'a self) -> GetChatAdministrators<'a, C> { ... }
fn get_chat_member(&'a self, user_id: Id) -> GetChatMember<'a, C> { ... }
fn get_chat_members_count(&'a self) -> GetChatMembersCount<'a, C> { ... }
fn get_message_game_high_scores(
        &'a self,
        message_id: Id,
        user_id: Id
    ) -> GetMessageGameHighScores<'a, C> { ... }
fn kick_chat_member(&'a self, user_id: Id) -> KickChatMember<'a, C> { ... }
fn leave_chat(&'a self) -> LeaveChat<'a, C> { ... }
fn promote_chat_member(&'a self, user_id: Id) -> PromoteChatMember<'a, C> { ... }
fn restrict_chat_member(&'a self, user_id: Id) -> RestrictChatMember<'a, C> { ... }
fn send_animation(
        &'a self,
        animation: Animation<'a>
    ) -> SendAnimation<'a, C> { ... }
fn send_animation_in_reply(
        &'a self,
        animation: Animation<'a>
    ) -> SendAnimation<'a, C> { ... }
fn send_audio(&'a self, audio: Audio<'a>) -> SendAudio<'a, C> { ... }
fn send_audio_in_reply(&'a self, audio: Audio<'a>) -> SendAudio<'a, C> { ... }
fn send_chat_action(&'a self, action: Action) -> SendChatAction<C> { ... }
fn send_contact(
        &'a self,
        phone_number: &'a str,
        first_name: &'a str
    ) -> SendContact<'a, C> { ... }
fn send_contact_in_reply(
        &'a self,
        phone_number: &'a str,
        first_name: &'a str
    ) -> SendContact<'a, C> { ... }
fn send_game(&'a self, game_short_name: &'a str) -> SendGame<'a, C> { ... }
fn send_game_in_reply(&'a self, game_short_name: &'a str) -> SendGame<'a, C> { ... }
fn send_document(&'a self, document: Document<'a>) -> SendDocument<'a, C> { ... }
fn send_document_in_reply(
        &'a self,
        document: Document<'a>
    ) -> SendDocument<'a, C> { ... }
fn send_invoice(
        &'a self,
        title: &'a str,
        description: &'a str,
        payload: &'a str,
        provider_token: &'a str,
        start_parameter: &'a str,
        currency: &'a str,
        prices: &'a [LabeledPrice<'a>]
    ) -> SendInvoice<'a, C> { ... }
fn send_invoice_in_reply(
        &'a self,
        title: &'a str,
        description: &'a str,
        payload: &'a str,
        provider_token: &'a str,
        start_parameter: &'a str,
        currency: &'a str,
        prices: &'a [LabeledPrice<'a>]
    ) -> SendInvoice<'a, C> { ... }
fn send_location(&'a self, location: (f64, f64)) -> SendLocation<C> { ... }
fn send_location_in_reply(&'a self, location: (f64, f64)) -> SendLocation<C> { ... }
fn send_media_group(
        &'a self,
        media: &'a [GroupMedia<'a>]
    ) -> SendMediaGroup<'a, C> { ... }
fn send_media_group_in_reply(
        &'a self,
        media: &'a [GroupMedia<'a>]
    ) -> SendMediaGroup<'a, C> { ... }
fn send_message(&'a self, text: impl Into<Text<'a>>) -> SendMessage<'a, C> { ... }
fn send_message_in_reply(
        &'a self,
        text: impl Into<Text<'a>>
    ) -> SendMessage<'a, C> { ... }
fn send_photo(&'a self, photo: Photo<'a>) -> SendPhoto<'a, C> { ... }
fn send_photo_in_reply(&'a self, photo: Photo<'a>) -> SendPhoto<'a, C> { ... }
fn send_poll(
        &'a self,
        question: &'a str,
        options: &'a [&'a str]
    ) -> SendPoll<'a, C> { ... }
fn send_poll_in_reply(
        &'a self,
        question: &'a str,
        options: &'a [&'a str]
    ) -> SendPoll<'a, C> { ... }
fn send_sticker(&'a self, sticker: Sticker<'a>) -> SendSticker<'a, C> { ... }
fn send_sticker_in_reply(
        &'a self,
        sticker: Sticker<'a>
    ) -> SendSticker<'a, C> { ... }
fn send_venue(
        &'a self,
        location: (f64, f64),
        title: &'a str,
        address: &'a str
    ) -> SendVenue<'a, C> { ... }
fn send_venue_in_reply(
        &'a self,
        location: (f64, f64),
        title: &'a str,
        address: &'a str
    ) -> SendVenue<'a, C> { ... }
fn send_video(&'a self, video: Video<'a>) -> SendVideo<'a, C> { ... }
fn send_video_in_reply(&'a self, video: Video<'a>) -> SendVideo<'a, C> { ... }
fn send_video_note(
        &'a self,
        video_note: VideoNote<'a>
    ) -> SendVideoNote<'a, C> { ... }
fn send_video_note_in_reply(
        &'a self,
        video_note: VideoNote<'a>
    ) -> SendVideoNote<'a, C> { ... }
fn send_voice(&'a self, voice: Voice<'a>) -> SendVoice<'a, C> { ... }
fn send_voice_in_reply(&'a self, voice: Voice<'a>) -> SendVoice<'a, C> { ... }
fn set_chat_description(
        &'a self,
        description: &'a str
    ) -> SetChatDescription<'a, C> { ... }
fn set_chat_photo(&'a self, photo: ChatPhoto<'a>) -> SetChatPhoto<'a, C> { ... }
fn set_chat_sticker_set(
        &'a self,
        sticker_set_name: &'a str
    ) -> SetChatStickerSet<'a, C> { ... }
fn set_chat_title(&'a self, title: &'a str) -> SetChatTitle<'a, C> { ... }
fn set_message_game_score(
        &'a self,
        message_id: Id,
        user_id: Id,
        score: u32
    ) -> SetMessageGameScore<'a, C> { ... }
fn unban_chat_member(&'a self, user_id: Id) -> UnbanChatMember<'a, C> { ... }
fn unpin_chat_message(&'a self) -> UnpinChatMessage<'a, C> { ... } }

Provides methods appliable to all messages.

Provided methods

fn delete_chat_photo(&'a self) -> DeleteChatPhoto<'a, C>

Deletes the photo of this chat.

fn delete_chat_sticker_set(&'a self) -> DeleteChatStickerSet<'a, C>

Deletes the sticker set of this chat.

fn delete_message(&'a self, message_id: Id) -> DeleteMessage<'a, C>

Deletes a message in this chat.

fn delete_this_message(&'a self) -> DeleteMessage<'a, C>

Deletes the incoming message.

fn edit_message_caption(
    &'a self,
    message_id: Id,
    caption: impl Into<Text<'a>>
) -> EditMessageCaption<'a, C>

Updates the caption of a message in this group.

fn edit_message_location(
    &'a self,
    message_id: Id,
    location: (f64, f64)
) -> EditMessageLocation<'a, C>

Updates a live location in this group.

fn edit_message_media(
    &'a self,
    message_id: Id,
    media: impl Into<EditableMedia<'a>>
) -> EditMessageMedia<'a, C>

Updates the media of a message in this group.

fn edit_message_reply_markup(
    &'a self,
    message_id: Id,
    reply_markup: Keyboard<'a>
) -> EditMessageReplyMarkup<'a, C>

Updates the reply markup of a message in this group.

fn edit_message_text(
    &'a self,
    message_id: Id,
    text: impl Into<Text<'a>>
) -> EditMessageText<'a, C>

Updates the text of a message in this group.

Exports the invite link of this chat.

fn forward_here(
    &'a self,
    from_chat_id: impl ImplicitChatId<'a>,
    message_id: Id
) -> ForwardMessage<'a, C>

Forwards a message to this chat.

fn get_chat(&'a self) -> GetChat<'a, C>

Gets information about this chat.

fn get_chat_administrators(&'a self) -> GetChatAdministrators<'a, C>

Gets a list of admins of this chat.

fn get_chat_member(&'a self, user_id: Id) -> GetChatMember<'a, C>

Gets information about a member of this chat.

fn get_chat_members_count(&'a self) -> GetChatMembersCount<'a, C>

Gets the number of members in this chat.

fn get_message_game_high_scores(
    &'a self,
    message_id: Id,
    user_id: Id
) -> GetMessageGameHighScores<'a, C>

Gets infomation about high scores in a game sent in this chat.

fn kick_chat_member(&'a self, user_id: Id) -> KickChatMember<'a, C>

Kicks a member of this chat.

fn leave_chat(&'a self) -> LeaveChat<'a, C>

Leaves this chat.

fn promote_chat_member(&'a self, user_id: Id) -> PromoteChatMember<'a, C>

Promotes a member of this chat.

fn restrict_chat_member(&'a self, user_id: Id) -> RestrictChatMember<'a, C>

Restricts a member of this chat.

fn send_animation(&'a self, animation: Animation<'a>) -> SendAnimation<'a, C>

Send an animation to this chat.

fn send_animation_in_reply(
    &'a self,
    animation: Animation<'a>
) -> SendAnimation<'a, C>

Sends an animation in reply to this message.

fn send_audio(&'a self, audio: Audio<'a>) -> SendAudio<'a, C>

Sends an audio to this chat.

fn send_audio_in_reply(&'a self, audio: Audio<'a>) -> SendAudio<'a, C>

Sends an audio in reply to this message.

fn send_chat_action(&'a self, action: Action) -> SendChatAction<C>

Sends an action to this group.

fn send_contact(
    &'a self,
    phone_number: &'a str,
    first_name: &'a str
) -> SendContact<'a, C>

Sends a contact to this group.

fn send_contact_in_reply(
    &'a self,
    phone_number: &'a str,
    first_name: &'a str
) -> SendContact<'a, C>

Sends a contact in reply to this message.

fn send_game(&'a self, game_short_name: &'a str) -> SendGame<'a, C>

Sends a game to this chat.

fn send_game_in_reply(&'a self, game_short_name: &'a str) -> SendGame<'a, C>

Sends a game in reply to this message.

fn send_document(&'a self, document: Document<'a>) -> SendDocument<'a, C>

Sends a document to this chat.

fn send_document_in_reply(
    &'a self,
    document: Document<'a>
) -> SendDocument<'a, C>

Sends a document in reply to this message.

fn send_invoice(
    &'a self,
    title: &'a str,
    description: &'a str,
    payload: &'a str,
    provider_token: &'a str,
    start_parameter: &'a str,
    currency: &'a str,
    prices: &'a [LabeledPrice<'a>]
) -> SendInvoice<'a, C>

Sends an invoice to this chat.

fn send_invoice_in_reply(
    &'a self,
    title: &'a str,
    description: &'a str,
    payload: &'a str,
    provider_token: &'a str,
    start_parameter: &'a str,
    currency: &'a str,
    prices: &'a [LabeledPrice<'a>]
) -> SendInvoice<'a, C>

Sends an invoice in reply to this message.

fn send_location(&'a self, location: (f64, f64)) -> SendLocation<C>

Sends a location to this chat.

fn send_location_in_reply(&'a self, location: (f64, f64)) -> SendLocation<C>

Sends a location in reply to this message.

fn send_media_group(
    &'a self,
    media: &'a [GroupMedia<'a>]
) -> SendMediaGroup<'a, C>

Sends an album to this chat.

fn send_media_group_in_reply(
    &'a self,
    media: &'a [GroupMedia<'a>]
) -> SendMediaGroup<'a, C>

Sends an album in reply to this message.

fn send_message(&'a self, text: impl Into<Text<'a>>) -> SendMessage<'a, C>

Sends a message to this chat.

fn send_message_in_reply(
    &'a self,
    text: impl Into<Text<'a>>
) -> SendMessage<'a, C>

Sends a message in reply to this message.

fn send_photo(&'a self, photo: Photo<'a>) -> SendPhoto<'a, C>

Sends a photo to this chat.

fn send_photo_in_reply(&'a self, photo: Photo<'a>) -> SendPhoto<'a, C>

Sends a photo in reply to this message.

fn send_poll(
    &'a self,
    question: &'a str,
    options: &'a [&'a str]
) -> SendPoll<'a, C>

Sends a poll to this chat.

fn send_poll_in_reply(
    &'a self,
    question: &'a str,
    options: &'a [&'a str]
) -> SendPoll<'a, C>

Sends a poll in reply to this message.

fn send_sticker(&'a self, sticker: Sticker<'a>) -> SendSticker<'a, C>

Sends a sticker to this chat.

fn send_sticker_in_reply(&'a self, sticker: Sticker<'a>) -> SendSticker<'a, C>

Sends a sticker in reply to this message.

fn send_venue(
    &'a self,
    location: (f64, f64),
    title: &'a str,
    address: &'a str
) -> SendVenue<'a, C>

Sends a venue to this chat.

fn send_venue_in_reply(
    &'a self,
    location: (f64, f64),
    title: &'a str,
    address: &'a str
) -> SendVenue<'a, C>

Sends a venue in reply to this message.

fn send_video(&'a self, video: Video<'a>) -> SendVideo<'a, C>

Sends a video to this chat.

fn send_video_in_reply(&'a self, video: Video<'a>) -> SendVideo<'a, C>

Sends a video in reply to this message.

fn send_video_note(&'a self, video_note: VideoNote<'a>) -> SendVideoNote<'a, C>

Sends a video note to this chat.

fn send_video_note_in_reply(
    &'a self,
    video_note: VideoNote<'a>
) -> SendVideoNote<'a, C>

Sends a video note in reply to this message.

fn send_voice(&'a self, voice: Voice<'a>) -> SendVoice<'a, C>

Sends a voice to this chat.

fn send_voice_in_reply(&'a self, voice: Voice<'a>) -> SendVoice<'a, C>

Sends a voice in reply to this message.

fn set_chat_description(
    &'a self,
    description: &'a str
) -> SetChatDescription<'a, C>

Sets a new description of this chat.

fn set_chat_photo(&'a self, photo: ChatPhoto<'a>) -> SetChatPhoto<'a, C>

Sets a new photo of this chat.

fn set_chat_sticker_set(
    &'a self,
    sticker_set_name: &'a str
) -> SetChatStickerSet<'a, C>

Sets a new sticker set of this chat.

fn set_chat_title(&'a self, title: &'a str) -> SetChatTitle<'a, C>

Sets a new chat title of this chat.

fn set_message_game_score(
    &'a self,
    message_id: Id,
    user_id: Id,
    score: u32
) -> SetMessageGameScore<'a, C>

Sets a new high score for a player who played a game in this chat.

fn unban_chat_member(&'a self, user_id: Id) -> UnbanChatMember<'a, C>

Unbans a member of this chat.

fn unpin_chat_message(&'a self) -> UnpinChatMessage<'a, C>

Unpins the pinned message in this chat.

Loading content...

Implementors

impl<'a, C: 'static> ChatMethods<'a, C> for AnimatedSticker<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Animation<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Audio<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for ConnectedWebsite<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Contact<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for CreatedGroup<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for DeletedChatPhoto<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Document<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for EditedAnimation<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for EditedAudio<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for EditedDocument<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for EditedLocation<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for EditedPhoto<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for EditedText<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for EditedVideo<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Game<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Invoice<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for LeftMember<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Location<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Migration<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for NewChatPhoto<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for NewChatTitle<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for NewMembers<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Passport<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Payment<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Photo<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for PinnedMessage<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Poll<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Sticker<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Text<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Venue<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Video<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for VideoNote<C>[src]

impl<'a, C: 'static> ChatMethods<'a, C> for Voice<C>[src]

Loading content...