pub struct PinChatMessage { /* private fields */ }
Expand description
Use this method to pin a message in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in the supergroup or ‘can_edit_messages’ admin right in the channel.
Implementations§
source§impl PinChatMessage
impl PinChatMessage
pub fn disable_notification(&mut self) -> &mut Self
Trait Implementations§
source§impl Clone for PinChatMessage
impl Clone for PinChatMessage
source§fn clone(&self) -> PinChatMessage
fn clone(&self) -> PinChatMessage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PinChatMessage
impl Debug for PinChatMessage
source§impl PartialEq<PinChatMessage> for PinChatMessage
impl PartialEq<PinChatMessage> for PinChatMessage
source§fn eq(&self, other: &PinChatMessage) -> bool
fn eq(&self, other: &PinChatMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<PinChatMessage> for PinChatMessage
impl PartialOrd<PinChatMessage> for PinChatMessage
source§fn partial_cmp(&self, other: &PinChatMessage) -> Option<Ordering>
fn partial_cmp(&self, other: &PinChatMessage) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more