Struct telegram_bot_ars::types::requests::PinChatMessage
source · 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 PinChatMessage
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
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 moresource§impl Request for PinChatMessage
impl Request for PinChatMessage
type Type = JsonRequestType<PinChatMessage>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
source§impl Serialize for PinChatMessage
impl Serialize for PinChatMessage
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more