pub struct UnpinChatMessage { /* private fields */ }
Expand description
Use this method to unpin 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.
Trait Implementations
sourceimpl Clone for UnpinChatMessage
impl Clone for UnpinChatMessage
sourcefn clone(&self) -> UnpinChatMessage
fn clone(&self) -> UnpinChatMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UnpinChatMessage
impl Debug for UnpinChatMessage
sourceimpl PartialEq<UnpinChatMessage> for UnpinChatMessage
impl PartialEq<UnpinChatMessage> for UnpinChatMessage
sourcefn eq(&self, other: &UnpinChatMessage) -> bool
fn eq(&self, other: &UnpinChatMessage) -> bool
sourceimpl PartialOrd<UnpinChatMessage> for UnpinChatMessage
impl PartialOrd<UnpinChatMessage> for UnpinChatMessage
sourcefn partial_cmp(&self, other: &UnpinChatMessage) -> Option<Ordering>
fn partial_cmp(&self, other: &UnpinChatMessage) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Request for UnpinChatMessage
impl Request for UnpinChatMessage
type Type = JsonRequestType<UnpinChatMessage>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
sourceimpl Serialize for UnpinChatMessage
impl Serialize for UnpinChatMessage
impl StructuralPartialEq for UnpinChatMessage
Auto Trait Implementations
impl RefUnwindSafe for UnpinChatMessage
impl Send for UnpinChatMessage
impl Sync for UnpinChatMessage
impl Unpin for UnpinChatMessage
impl UnwindSafe for UnpinChatMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more