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
sourceimpl PinChatMessage
impl PinChatMessage
pub fn new<C, M>(chat: C, message: M) -> Selfwhere
C: ToChatRef,
M: ToMessageId,
pub fn disable_notification(&mut self) -> &mut Self
Trait Implementations
sourceimpl Clone for PinChatMessage
impl Clone for PinChatMessage
sourcefn clone(&self) -> PinChatMessage
fn clone(&self) -> PinChatMessage
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 PinChatMessage
impl Debug for PinChatMessage
sourceimpl PartialEq<PinChatMessage> for PinChatMessage
impl PartialEq<PinChatMessage> for PinChatMessage
sourcefn eq(&self, other: &PinChatMessage) -> bool
fn eq(&self, other: &PinChatMessage) -> bool
sourceimpl PartialOrd<PinChatMessage> for PinChatMessage
impl PartialOrd<PinChatMessage> for PinChatMessage
sourcefn partial_cmp(&self, other: &PinChatMessage) -> Option<Ordering>
fn partial_cmp(&self, other: &PinChatMessage) -> 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 PinChatMessage
impl Request for PinChatMessage
type Type = JsonRequestType<PinChatMessage>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
sourceimpl Serialize for PinChatMessage
impl Serialize for PinChatMessage
impl StructuralPartialEq for PinChatMessage
Auto Trait Implementations
impl RefUnwindSafe for PinChatMessage
impl Send for PinChatMessage
impl Sync for PinChatMessage
impl Unpin for PinChatMessage
impl UnwindSafe for PinChatMessage
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