Struct teloxide_core::payloads::SetChatDescription
source · [−]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: RecipientUnique 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
sourceimpl Clone for SetChatDescription
impl Clone for SetChatDescription
sourcefn clone(&self) -> SetChatDescriptionⓘNotable traits for SetChatDescriptionimpl Payload for SetChatDescription type Output = True;
fn clone(&self) -> SetChatDescriptionⓘNotable traits for SetChatDescriptionimpl Payload for SetChatDescription type Output = True;
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 SetChatDescription
impl Debug for SetChatDescription
sourceimpl Hash for SetChatDescription
impl Hash for SetChatDescription
sourceimpl PartialEq<SetChatDescription> for SetChatDescription
impl PartialEq<SetChatDescription> for SetChatDescription
sourcefn eq(&self, other: &SetChatDescription) -> bool
fn eq(&self, other: &SetChatDescription) -> bool
sourceimpl Payload for SetChatDescription
impl Payload for SetChatDescription
sourcefn 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. Read moresourceimpl 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
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
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.