Struct teloxide_core::payloads::UnpinChatMessage
source · pub struct UnpinChatMessage {
pub chat_id: Recipient,
pub message_id: Option<MessageId>,
}
Expand description
Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the ‘can_pin_messages’ admin right in a supergroup or ‘can_edit_messages’ admin right in a channel. Returns True on success.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
message_id: Option<MessageId>
Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.
Implementations§
Trait Implementations§
source§impl Clone for UnpinChatMessage
impl Clone for UnpinChatMessage
source§impl Debug for UnpinChatMessage
impl Debug for UnpinChatMessage
source§impl Hash for UnpinChatMessage
impl Hash for UnpinChatMessage
source§impl PartialEq<UnpinChatMessage> for UnpinChatMessage
impl PartialEq<UnpinChatMessage> for UnpinChatMessage
source§fn eq(&self, other: &UnpinChatMessage) -> bool
fn eq(&self, other: &UnpinChatMessage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for UnpinChatMessage
impl Payload for UnpinChatMessage
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for UnpinChatMessage
impl Serialize for UnpinChatMessage
impl Eq for UnpinChatMessage
impl StructuralEq 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§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.