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
chat_id: PolymorphChatId
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
message_id: i64
Identifier of the message to delete
Trait Implementations
impl Debug for DeleteMessage
[src]
impl Debug for DeleteMessage
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for DeleteMessage
[src]
impl Clone for DeleteMessage
fn clone(&self) -> DeleteMessage
[src]
fn clone(&self) -> DeleteMessage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for DeleteMessage
[src]
impl PartialEq for DeleteMessage
fn eq(&self, other: &DeleteMessage) -> bool
[src]
fn eq(&self, other: &DeleteMessage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &DeleteMessage) -> bool
[src]
fn ne(&self, other: &DeleteMessage) -> bool
This method tests for !=
.
impl PartialOrd for DeleteMessage
[src]
impl PartialOrd for DeleteMessage
fn partial_cmp(&self, other: &DeleteMessage) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &DeleteMessage) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &DeleteMessage) -> bool
[src]
fn lt(&self, other: &DeleteMessage) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &DeleteMessage) -> bool
[src]
fn le(&self, other: &DeleteMessage) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &DeleteMessage) -> bool
[src]
fn gt(&self, other: &DeleteMessage) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &DeleteMessage) -> bool
[src]
fn ge(&self, other: &DeleteMessage) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for DeleteMessage
impl Send for DeleteMessage
impl Sync for DeleteMessage
impl Sync for DeleteMessage