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

pub trait Message: Message {
Show methods fn copy_here(
        &self,
        from_chat_id: impl ImplicitChatId,
        message_id: Id
    ) -> CopyMessage<'_> { ... }
fn copy_here_in_reply(
        &self,
        from_chat_id: impl ImplicitChatId,
        message_id: Id
    ) -> CopyMessage<'_> { ... }
fn create_chat_invite_link(&self) -> CreateChatInviteLink<'_> { ... }
fn delete_chat_photo(&self) -> DeleteChatPhoto<'_> { ... }
fn delete_chat_sticker_set(&self) -> DeleteChatStickerSet<'_> { ... }
fn delete_message(&self, message_id: Id) -> DeleteMessage<'_> { ... }
fn delete_this_message(&self) -> DeleteMessage<'_> { ... }
fn edit_chat_invite_link(
        &self,
        link: impl Into<String>
    ) -> EditChatInviteLink<'_> { ... }
fn edit_message_caption(
        &self,
        message_id: Id,
        caption: impl Into<Text>
    ) -> EditMessageCaption<'_> { ... }
fn edit_message_location(
        &self,
        message_id: Id,
        location: (f64, f64)
    ) -> EditMessageLocation<'_> { ... }
fn edit_message_media(
        &self,
        message_id: Id,
        media: impl Into<EditableMedia>
    ) -> EditMessageMedia<'_> { ... }
fn edit_message_reply_markup(
        &self,
        message_id: Id,
        reply_markup: Keyboard
    ) -> EditMessageReplyMarkup<'_> { ... }
fn edit_message_text(
        &self,
        message_id: Id,
        text: impl Into<Text>
    ) -> EditMessageText<'_> { ... }
fn export_chat_invite_link(&self) -> ExportChatInviteLink<'_> { ... }
fn forward_here(
        &self,
        from_chat_id: impl ImplicitChatId,
        message_id: Id
    ) -> ForwardMessage<'_> { ... }
fn get_chat(&self) -> GetChat<'_> { ... }
fn get_chat_administrators(&self) -> GetChatAdministrators<'_> { ... }
fn get_chat_member(&self, user_id: Id) -> GetChatMember<'_> { ... }
fn get_chat_member_count(&self) -> GetChatMemberCount<'_> { ... }
fn get_message_game_high_scores(
        &self,
        message_id: Id,
        user_id: Id
    ) -> GetMessageGameHighScores<'_> { ... }
fn ban_chat_member(&self, user_id: Id) -> BanChatMember<'_> { ... }
fn leave_chat(&self) -> LeaveChat<'_> { ... }
fn pin_chat_message(&self, message_id: Id) -> PinChatMessage<'_> { ... }
fn promote_chat_member(&self, user_id: Id) -> PromoteChatMember<'_> { ... }
fn restrict_chat_member(
        &self,
        user_id: Id,
        permissions: Permissions
    ) -> RestrictChatMember<'_> { ... }
fn revoke_chat_invite_link(
        &self,
        link: impl Into<String>
    ) -> RevokeChatInviteLink<'_> { ... }
fn send_animation(&self, animation: Animation) -> SendAnimation<'_> { ... }
fn send_animation_in_reply(&self, animation: Animation) -> SendAnimation<'_> { ... }
fn send_audio(&self, audio: Audio) -> SendAudio<'_> { ... }
fn send_audio_in_reply(&self, audio: Audio) -> SendAudio<'_> { ... }
fn send_chat_action(&self, action: Action) -> SendChatAction<'_> { ... }
fn send_contact(
        &self,
        phone_number: impl Into<String>,
        first_name: impl Into<String>
    ) -> SendContact<'_> { ... }
fn send_contact_in_reply(
        &self,
        phone_number: impl Into<String>,
        first_name: impl Into<String>
    ) -> SendContact<'_> { ... }
fn send_game(&self, game_short_name: impl Into<String>) -> SendGame<'_> { ... }
fn send_game_in_reply(
        &self,
        game_short_name: impl Into<String>
    ) -> SendGame<'_> { ... }
fn send_dice(&self) -> SendDice<'_> { ... }
fn send_dice_in_reply(&self) -> SendDice<'_> { ... }
fn send_document(&self, document: Document) -> SendDocument<'_> { ... }
fn send_document_in_reply(&self, document: Document) -> SendDocument<'_> { ... }
fn send_invoice(&self, invoice: Invoice) -> SendInvoice<'_> { ... }
fn send_invoice_in_reply(&self, invoice: Invoice) -> SendInvoice<'_> { ... }
fn send_location(&self, location: (f64, f64)) -> SendLocation<'_> { ... }
fn send_location_in_reply(&self, location: (f64, f64)) -> SendLocation<'_> { ... }
fn send_media_group(
        &self,
        media: impl Into<MediaGroup>
    ) -> SendMediaGroup<'_> { ... }
fn send_media_group_in_reply(
        &self,
        media: impl Into<MediaGroup>
    ) -> SendMediaGroup<'_> { ... }
fn send_message(&self, text: impl Into<Text>) -> SendMessage<'_> { ... }
fn send_message_in_reply(&self, text: impl Into<Text>) -> SendMessage<'_> { ... }
fn send_photo(&self, photo: Photo) -> SendPhoto<'_> { ... }
fn send_photo_in_reply(&self, photo: Photo) -> SendPhoto<'_> { ... }
fn send_poll(&self, poll: Any) -> SendPoll<'_> { ... }
fn send_poll_in_reply(&self, poll: Any) -> SendPoll<'_> { ... }
fn send_sticker(&self, sticker: Sticker) -> SendSticker<'_> { ... }
fn send_sticker_in_reply(&self, sticker: Sticker) -> SendSticker<'_> { ... }
fn send_venue(
        &self,
        location: (f64, f64),
        title: impl Into<String>,
        address: impl Into<String>
    ) -> SendVenue<'_> { ... }
fn send_venue_in_reply(
        &self,
        location: (f64, f64),
        title: impl Into<String>,
        address: impl Into<String>
    ) -> SendVenue<'_> { ... }
fn send_video(&self, video: Video) -> SendVideo<'_> { ... }
fn send_video_in_reply(&self, video: Video) -> SendVideo<'_> { ... }
fn send_video_note(&self, video_note: VideoNote) -> SendVideoNote<'_> { ... }
fn send_video_note_in_reply(
        &self,
        video_note: VideoNote
    ) -> SendVideoNote<'_> { ... }
fn send_voice(&self, voice: Voice) -> SendVoice<'_> { ... }
fn send_voice_in_reply(&self, voice: Voice) -> SendVoice<'_> { ... }
fn set_chat_administrator_custom_title(
        &self,
        user_id: Id,
        custom_title: impl Into<String>
    ) -> SetChatAdministratorCustomTitle<'_> { ... }
fn set_chat_description(
        &self,
        description: impl Into<String>
    ) -> SetChatDescription<'_> { ... }
fn set_chat_permissions(
        &self,
        permissions: Permissions
    ) -> SetChatPermissions<'_> { ... }
fn set_chat_photo(&self, photo: ChatPhoto) -> SetChatPhoto<'_> { ... }
fn set_chat_sticker_set(
        &self,
        sticker_set_name: impl Into<String>
    ) -> SetChatStickerSet<'_> { ... }
fn set_chat_title(&self, title: impl Into<String>) -> SetChatTitle<'_> { ... }
fn set_message_game_score(
        &self,
        message_id: Id,
        user_id: Id,
        score: u32
    ) -> SetMessageGameScore<'_> { ... }
fn unban_chat_member(&self, user_id: Id) -> UnbanChatMember<'_> { ... }
fn unpin_all_chat_messages(&self) -> UnpinAllChatMessages<'_> { ... }
fn unpin_chat_message(&self) -> UnpinChatMessage<'_> { ... }
}

Provides methods appliable to all messages.

Provided methods

fn copy_here(
    &self,
    from_chat_id: impl ImplicitChatId,
    message_id: Id
) -> CopyMessage<'_>
[src]

Copies a message to this chat.

fn copy_here_in_reply(
    &self,
    from_chat_id: impl ImplicitChatId,
    message_id: Id
) -> CopyMessage<'_>
[src]

Copies a message in reply to this message.

Creates a secondary invite link for this chat.

fn delete_chat_photo(&self) -> DeleteChatPhoto<'_>[src]

Deletes the photo of this chat.

fn delete_chat_sticker_set(&self) -> DeleteChatStickerSet<'_>[src]

Deletes the sticker set of this chat.

fn delete_message(&self, message_id: Id) -> DeleteMessage<'_>[src]

Deletes a message in this chat.

fn delete_this_message(&self) -> DeleteMessage<'_>[src]

Deletes the incoming message.

Edits a secondary invite link for this chat.

fn edit_message_caption(
    &self,
    message_id: Id,
    caption: impl Into<Text>
) -> EditMessageCaption<'_>
[src]

Updates the caption of a message in this group.

fn edit_message_location(
    &self,
    message_id: Id,
    location: (f64, f64)
) -> EditMessageLocation<'_>
[src]

Updates a live location in this group.

fn edit_message_media(
    &self,
    message_id: Id,
    media: impl Into<EditableMedia>
) -> EditMessageMedia<'_>
[src]

Updates the media of a message in this group.

fn edit_message_reply_markup(
    &self,
    message_id: Id,
    reply_markup: Keyboard
) -> EditMessageReplyMarkup<'_>
[src]

Updates the reply markup of a message in this group.

fn edit_message_text(
    &self,
    message_id: Id,
    text: impl Into<Text>
) -> EditMessageText<'_>
[src]

Updates the text of a message in this group.

Exports the invite link of this chat.

fn forward_here(
    &self,
    from_chat_id: impl ImplicitChatId,
    message_id: Id
) -> ForwardMessage<'_>
[src]

Forwards a message to this chat.

fn get_chat(&self) -> GetChat<'_>[src]

Gets information about this chat.

fn get_chat_administrators(&self) -> GetChatAdministrators<'_>[src]

Gets a list of admins of this chat.

fn get_chat_member(&self, user_id: Id) -> GetChatMember<'_>[src]

Gets information about a member of this chat.

fn get_chat_member_count(&self) -> GetChatMemberCount<'_>[src]

Gets the number of members in this chat.

fn get_message_game_high_scores(
    &self,
    message_id: Id,
    user_id: Id
) -> GetMessageGameHighScores<'_>
[src]

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

fn ban_chat_member(&self, user_id: Id) -> BanChatMember<'_>[src]

Bans a member of this chat.

fn leave_chat(&self) -> LeaveChat<'_>[src]

Leaves this chat.

fn pin_chat_message(&self, message_id: Id) -> PinChatMessage<'_>[src]

Pins a message in this chat.

fn promote_chat_member(&self, user_id: Id) -> PromoteChatMember<'_>[src]

Promotes a member of this chat.

fn restrict_chat_member(
    &self,
    user_id: Id,
    permissions: Permissions
) -> RestrictChatMember<'_>
[src]

Restricts a member of this chat.

Revokes an invite link for this chat.

fn send_animation(&self, animation: Animation) -> SendAnimation<'_>[src]

Send an animation to this chat.

fn send_animation_in_reply(&self, animation: Animation) -> SendAnimation<'_>[src]

Sends an animation in reply to this message.

fn send_audio(&self, audio: Audio) -> SendAudio<'_>[src]

Sends an audio to this chat.

fn send_audio_in_reply(&self, audio: Audio) -> SendAudio<'_>[src]

Sends an audio in reply to this message.

fn send_chat_action(&self, action: Action) -> SendChatAction<'_>[src]

Sends an action to this group.

fn send_contact(
    &self,
    phone_number: impl Into<String>,
    first_name: impl Into<String>
) -> SendContact<'_>
[src]

Sends a contact to this group.

fn send_contact_in_reply(
    &self,
    phone_number: impl Into<String>,
    first_name: impl Into<String>
) -> SendContact<'_>
[src]

Sends a contact in reply to this message.

fn send_game(&self, game_short_name: impl Into<String>) -> SendGame<'_>[src]

Sends a game to this chat.

fn send_game_in_reply(&self, game_short_name: impl Into<String>) -> SendGame<'_>[src]

Sends a game in reply to this message.

fn send_dice(&self) -> SendDice<'_>[src]

Sends a dice to this chat.

fn send_dice_in_reply(&self) -> SendDice<'_>[src]

Sends a dice in reply to this message.

fn send_document(&self, document: Document) -> SendDocument<'_>[src]

Sends a document to this chat.

fn send_document_in_reply(&self, document: Document) -> SendDocument<'_>[src]

Sends a document in reply to this message.

fn send_invoice(&self, invoice: Invoice) -> SendInvoice<'_>[src]

Sends an invoice to this chat.

fn send_invoice_in_reply(&self, invoice: Invoice) -> SendInvoice<'_>[src]

Sends an invoice in reply to this message.

fn send_location(&self, location: (f64, f64)) -> SendLocation<'_>[src]

Sends a location to this chat.

fn send_location_in_reply(&self, location: (f64, f64)) -> SendLocation<'_>[src]

Sends a location in reply to this message.

fn send_media_group(&self, media: impl Into<MediaGroup>) -> SendMediaGroup<'_>[src]

Sends an album to this chat.

fn send_media_group_in_reply(
    &self,
    media: impl Into<MediaGroup>
) -> SendMediaGroup<'_>
[src]

Sends an album in reply to this message.

fn send_message(&self, text: impl Into<Text>) -> SendMessage<'_>[src]

Sends a message to this chat.

fn send_message_in_reply(&self, text: impl Into<Text>) -> SendMessage<'_>[src]

Sends a message in reply to this message.

fn send_photo(&self, photo: Photo) -> SendPhoto<'_>[src]

Sends a photo to this chat.

fn send_photo_in_reply(&self, photo: Photo) -> SendPhoto<'_>[src]

Sends a photo in reply to this message.

fn send_poll(&self, poll: Any) -> SendPoll<'_>[src]

Sends a poll to this chat.

fn send_poll_in_reply(&self, poll: Any) -> SendPoll<'_>[src]

Sends a poll in reply to this message.

fn send_sticker(&self, sticker: Sticker) -> SendSticker<'_>[src]

Sends a sticker to this chat.

fn send_sticker_in_reply(&self, sticker: Sticker) -> SendSticker<'_>[src]

Sends a sticker in reply to this message.

fn send_venue(
    &self,
    location: (f64, f64),
    title: impl Into<String>,
    address: impl Into<String>
) -> SendVenue<'_>
[src]

Sends a venue to this chat.

fn send_venue_in_reply(
    &self,
    location: (f64, f64),
    title: impl Into<String>,
    address: impl Into<String>
) -> SendVenue<'_>
[src]

Sends a venue in reply to this message.

fn send_video(&self, video: Video) -> SendVideo<'_>[src]

Sends a video to this chat.

fn send_video_in_reply(&self, video: Video) -> SendVideo<'_>[src]

Sends a video in reply to this message.

fn send_video_note(&self, video_note: VideoNote) -> SendVideoNote<'_>[src]

Sends a video note to this chat.

fn send_video_note_in_reply(&self, video_note: VideoNote) -> SendVideoNote<'_>[src]

Sends a video note in reply to this message.

fn send_voice(&self, voice: Voice) -> SendVoice<'_>[src]

Sends a voice to this chat.

fn send_voice_in_reply(&self, voice: Voice) -> SendVoice<'_>[src]

Sends a voice in reply to this message.

fn set_chat_administrator_custom_title(
    &self,
    user_id: Id,
    custom_title: impl Into<String>
) -> SetChatAdministratorCustomTitle<'_>
[src]

Sets a custom title for an admin in this chat.

fn set_chat_description(
    &self,
    description: impl Into<String>
) -> SetChatDescription<'_>
[src]

Sets a new description of this chat.

fn set_chat_permissions(
    &self,
    permissions: Permissions
) -> SetChatPermissions<'_>
[src]

Sets new permissions of this chat.

fn set_chat_photo(&self, photo: ChatPhoto) -> SetChatPhoto<'_>[src]

Sets a new photo of this chat.

fn set_chat_sticker_set(
    &self,
    sticker_set_name: impl Into<String>
) -> SetChatStickerSet<'_>
[src]

Sets a new sticker set of this chat.

fn set_chat_title(&self, title: impl Into<String>) -> SetChatTitle<'_>[src]

Sets a new chat title of this chat.

fn set_message_game_score(
    &self,
    message_id: Id,
    user_id: Id,
    score: u32
) -> SetMessageGameScore<'_>
[src]

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

fn unban_chat_member(&self, user_id: Id) -> UnbanChatMember<'_>[src]

Unbans a member of this chat.

fn unpin_all_chat_messages(&self) -> UnpinAllChatMessages<'_>[src]

Unpins all messages in this chat.

fn unpin_chat_message(&self) -> UnpinChatMessage<'_>[src]

Unpins the pinned message in this chat.

Loading content...

Implementors

impl<T: Message> Message for T[src]

Loading content...