Struct teloxide_core::payloads::SetChatTitle
source · pub struct SetChatTitle {
pub chat_id: Recipient,
pub title: String,
}
Expand description
Use this method to change the title of a chat. Titles can’t be changed for private chats. 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
)
title: String
New chat title, 1-255 characters
Implementations§
Trait Implementations§
source§impl Clone for SetChatTitle
impl Clone for SetChatTitle
source§impl Debug for SetChatTitle
impl Debug for SetChatTitle
source§impl Hash for SetChatTitle
impl Hash for SetChatTitle
source§impl PartialEq<SetChatTitle> for SetChatTitle
impl PartialEq<SetChatTitle> for SetChatTitle
source§fn eq(&self, other: &SetChatTitle) -> bool
fn eq(&self, other: &SetChatTitle) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for SetChatTitle
impl Payload for SetChatTitle
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 SetChatTitle
impl Serialize for SetChatTitle
impl Eq for SetChatTitle
impl StructuralEq for SetChatTitle
impl StructuralPartialEq for SetChatTitle
Auto Trait Implementations§
impl RefUnwindSafe for SetChatTitle
impl Send for SetChatTitle
impl Sync for SetChatTitle
impl Unpin for SetChatTitle
impl UnwindSafe for SetChatTitle
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.