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

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

Provides methods appliable to all messages.

Provided methods

fn delete_chat_photo(&self) -> DeleteChatPhoto<C>

Deletes the photo of this chat.

fn delete_chat_sticker_set(&self) -> DeleteChatStickerSet<C>

Deletes the sticker set of this chat.

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

Deletes a message in this chat.

fn delete_this_message(&self) -> DeleteMessage<C>

Deletes the incoming message.

fn edit_message_caption<'a>(
    &'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(
    &self,
    message_id: Id,
    location: (f64, f64)
) -> EditMessageLocation<C>

Updates a live location in this group.

fn edit_message_media<'a>(
    &'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>(
    &'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>(
    &'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>(
    &'a self,
    from_chat_id: impl ImplicitChatId<'a>,
    message_id: Id
) -> ForwardMessage<'a, C>

Forwards a message to this chat.

fn get_chat(&self) -> GetChat<C>

Gets information about this chat.

fn get_chat_administrators(&self) -> GetChatAdministrators<C>

Gets a list of admins of this chat.

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

Gets information about a member of this chat.

fn get_chat_members_count(&self) -> GetChatMembersCount<C>

Gets the number of members in this chat.

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

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

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

Kicks a member of this chat.

fn leave_chat(&self) -> LeaveChat<C>

Leaves this chat.

fn pin_chat_message(&self, message_id: Id) -> PinChatMessage<C>

Pins a message in this chat.

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

Promotes a member of this chat.

fn restrict_chat_member(
    &self,
    user_id: Id,
    permissions: Permissions
) -> RestrictChatMember<C>

Restricts a member of this chat.

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

Send an animation to this chat.

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

Sends an animation in reply to this message.

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

Sends an audio to this chat.

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

Sends an audio in reply to this message.

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

Sends an action to this group.

fn send_contact<'a>(
    &'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>(
    &'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>(&'a self, game_short_name: &'a str) -> SendGame<'a, C>

Sends a game to this chat.

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

Sends a game in reply to this message.

fn send_dice(&self) -> SendDice<C>

Sends a dice to this chat.

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

Sends a document to this chat.

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

Sends a document in reply to this message.

fn send_invoice<'a>(
    &'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>(
    &'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(&self, location: (f64, f64)) -> SendLocation<C>

Sends a location to this chat.

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

Sends a location in reply to this message.

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

Sends an album to this chat.

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

Sends an album in reply to this message.

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

Sends a message to this chat.

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

Sends a message in reply to this message.

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

Sends a photo to this chat.

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

Sends a photo in reply to this message.

fn send_poll<'a>(&'a self, poll: &'a Poll<'a>) -> SendPoll<'a, C>

Sends a poll to this chat.

fn send_poll_in_reply<'a>(&'a self, poll: &'a Poll<'a>) -> SendPoll<'a, C>

Sends a poll in reply to this message.

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

Sends a sticker to this chat.

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

Sends a sticker in reply to this message.

fn send_venue<'a>(
    &'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>(
    &'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>(&'a self, video: Video<'a>) -> SendVideo<'a, C>

Sends a video to this chat.

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

Sends a video in reply to this message.

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

Sends a video note to this chat.

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

Sends a video note in reply to this message.

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

Sends a voice to this chat.

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

Sends a voice in reply to this message.

fn set_chat_administrator_custom_title<'a>(
    &'a self,
    user_id: Id,
    custom_title: &'a str
) -> SetChatAdministratorCustomTitle<'a, C>

Sets a custom title for an admin in this chat.

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

Sets a new description of this chat.

fn set_chat_permissions(
    &self,
    permissions: Permissions
) -> SetChatPermissions<C>

Sets new permissions of this chat.

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

Sets a new photo of this chat.

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

Sets a new sticker set of this chat.

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

Sets a new chat title of this chat.

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

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

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

Unbans a member of this chat.

fn unpin_chat_message(&self) -> UnpinChatMessage<C>

Unpins the pinned message in this chat.

Loading content...

Implementors

impl<'_, C: 'static, T: Message<C>> ChatMethods<'_, C> for T[src]

Loading content...