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 duplicate 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 for PinChatMessage
impl PartialEq for PinChatMessage
Source§impl PartialOrd for PinChatMessage
impl PartialOrd for PinChatMessage
Source§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
impl StructuralPartialEq for PinChatMessage
Auto Trait Implementations§
impl Freeze for PinChatMessage
impl RefUnwindSafe for PinChatMessage
impl Send for PinChatMessage
impl Sync for PinChatMessage
impl Unpin for PinChatMessage
impl UnwindSafe for PinChatMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more