[−][src]Struct tg_bot_models::Chat
This object represents a chat.
Fields
id: i64
Unique identifier for this chat. This number may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
ty: String
Type of chat, can be either “private”, “group”, “supergroup” or “channel”
title: Option<String>
Optional. Title, for supergroups, channels and group chats
username: Option<String>
Optional. Username, for private chats, supergroups and channels if available
first_name: Option<String>
Optional. First name of the other party in a private chat
last_name: Option<String>
Optional. Last name of the other party in a private chat
all_members_are_administrators: Option<bool>
Optional. True if a group has ‘All Members Are Admins’ enabled.
photo: Option<ChatPhoto>
Optional. Chat photo. Returned only in getChat.
description: Option<String>
Optional. Description, for supergroups and channel chats. Returned only in getChat.
invite_link: Option<String>
Optional. Chat invite link, for supergroups and channel chats. Each administrator in a chat generates their own invite links, so the bot must first generate the link using exportChatInviteLink. Returned only in getChat.
pinned_message: Option<Box<Message>>
Optional. Pinned message, for groups, supergroups and channels. Returned only in getChat.
sticker_set_name: Option<String>
Optional. For supergroups, name of group sticker set. Returned only in getChat.
can_set_sticker_set: Option<bool>
Optional. True, if the bot can change the group sticker set. Returned only in getChat.
Trait Implementations
impl PartialEq<Chat> for Chat
[src]
impl Clone for Chat
[src]
fn clone(&self) -> Chat
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialOrd<Chat> for Chat
[src]
fn partial_cmp(&self, other: &Chat) -> Option<Ordering>
[src]
fn lt(&self, other: &Chat) -> bool
[src]
fn le(&self, other: &Chat) -> bool
[src]
fn gt(&self, other: &Chat) -> bool
[src]
fn ge(&self, other: &Chat) -> bool
[src]
impl Debug for Chat
[src]
impl Serialize for Chat
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Chat
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,