Struct tg_bot_models::DeleteMessage[][src]

pub struct DeleteMessage {
    pub chat_id: PolymorphChatId,
    pub message_id: i64,
}

Use this method to delete a message, including service messages, with the following limitations:- A message can only be deleted if it was sent less than 48 hours ago.- Bots can delete outgoing messages in groups and supergroups.- Bots granted can_post_messages permissions can delete outgoing messages in channels.- If the bot is an administrator of a group, it can delete any message there.- If the bot has can_delete_messages permission in a supergroup or a channel, it can delete any message there.Returns True on success.

Fields

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

Identifier of the message to delete

Trait Implementations

impl Debug for DeleteMessage
[src]

Formats the value using the given formatter. Read more

impl Clone for DeleteMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for DeleteMessage
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl PartialOrd for DeleteMessage
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

Auto Trait Implementations