Struct teloxide_core::payloads::SetChatDescription
source · pub struct SetChatDescription {
pub chat_id: Recipient,
pub description: Option<String>,
}
Expand description
Use this method to change the description of a group, a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns True on success.
Fields§
§chat_id: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
description: Option<String>
New chat description, 0-255 characters
Implementations§
Trait Implementations§
source§impl Clone for SetChatDescription
impl Clone for SetChatDescription
source§impl Debug for SetChatDescription
impl Debug for SetChatDescription
source§impl Hash for SetChatDescription
impl Hash for SetChatDescription
source§impl PartialEq<SetChatDescription> for SetChatDescription
impl PartialEq<SetChatDescription> for SetChatDescription
source§fn eq(&self, other: &SetChatDescription) -> bool
fn eq(&self, other: &SetChatDescription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for SetChatDescription
impl Payload for SetChatDescription
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 SetChatDescription
impl Serialize for SetChatDescription
impl Eq for SetChatDescription
impl StructuralEq for SetChatDescription
impl StructuralPartialEq for SetChatDescription
Auto Trait Implementations§
impl RefUnwindSafe for SetChatDescription
impl Send for SetChatDescription
impl Sync for SetChatDescription
impl Unpin for SetChatDescription
impl UnwindSafe for SetChatDescription
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.