pub struct ChatFullInfo {Show 25 fields
pub active_usernames: Option<Vec<String>>,
pub id: ChatId,
pub kind: ChatFullInfoKind,
pub photo: Option<ChatPhoto>,
pub pinned_message: Option<Box<Message>>,
pub message_auto_delete_time: Option<Seconds>,
pub has_hidden_members: bool,
pub has_aggressive_anti_spam_enabled: bool,
pub accepted_gift_types: AcceptedGiftTypes,
pub rating: Option<UserRating>,
pub first_profile_audio: Option<Audio>,
pub paid_message_star_count: Option<u32>,
pub unique_gift_colors: Option<UniqueGiftColors>,
pub accent_color_id: u8,
pub background_custom_emoji_id: Option<CustomEmojiId>,
pub profile_accent_color_id: Option<u8>,
pub profile_background_custom_emoji_id: Option<CustomEmojiId>,
pub emoji_status_custom_emoji_id: Option<CustomEmojiId>,
pub emoji_status_expiration_date: Option<DateTime<Utc>>,
pub has_visible_history: bool,
pub max_reaction_count: u8,
pub guard_bot: Option<User>,
pub community: Option<Community>,
pub ton_wallet_card: Option<TonWalletCard>,
pub share_theme: Option<ChatShareTheme>,
}Expand description
This object contains full information about a chat.
Fields§
§active_usernames: Option<Vec<String>>Active usernames, if any.
id: ChatIdA unique identifier for this chat.
kind: ChatFullInfoKind§photo: Option<ChatPhoto>A chat photo.
pinned_message: Option<Box<Message>>The most recent pinned message (by sending date).
message_auto_delete_time: Option<Seconds>The time after which all messages sent to the chat will be automatically deleted; in seconds.
true, if non-administrators can only get the list of bots and
administrators in the chat.
has_aggressive_anti_spam_enabled: booltrue, if aggressive anti-spam checks are enabled in the supergroup.
The field is only available to chat administrators.
accepted_gift_types: AcceptedGiftTypesInformation about types of gifts that are accepted by the chat or by the corresponding user for private chats
rating: Option<UserRating>For private chats, the rating of the user if any
first_profile_audio: Option<Audio>For private chats, the first audio added to the profile of the user
paid_message_star_count: Option<u32>The number of Telegram Stars a general user have to pay to send a message to the chat
unique_gift_colors: Option<UniqueGiftColors>The color scheme based on a unique gift that must be used for the chat’s name, message replies and link previews
accent_color_id: u8Identifier of the accent color for the chat name and backgrounds of the chat photo, reply header, and link preview. See accent colors for more details.
background_custom_emoji_id: Option<CustomEmojiId>Custom emoji identifier of the emoji chosen by the chat for the reply header and link preview background
profile_accent_color_id: Option<u8>Identifier of the accent color for the chat’s profile background. See profile accent colors for more details.
profile_background_custom_emoji_id: Option<CustomEmojiId>Custom emoji identifier of the emoji chosen by the chat for its profile background
emoji_status_custom_emoji_id: Option<CustomEmojiId>Custom emoji identifier of emoji status of the other party in a private chat.
emoji_status_expiration_date: Option<DateTime<Utc>>Expiration date of the emoji status of the chat or the other party in a private chat, in Unix time, if any
has_visible_history: boolTrue, if new chat members will have access to old messages; available only to chat administrators.
max_reaction_count: u8The maximum number of reactions that can be set on a message in the chat
guard_bot: Option<User>The bot that processes join request queries in the chat. The field is only available to chat administrators.
community: Option<Community>Information about the community to which the chat belongs.
ton_wallet_card: Option<TonWalletCard>For private chats, the TON wallet card displayed on the user’s profile.
Theme shown when sharing a link to a user or chat, if not the default.
Implementations§
Source§impl ChatFullInfo
impl ChatFullInfo
pub fn is_private(&self) -> bool
Sourcepub fn is_group(&self) -> bool
pub fn is_group(&self) -> bool
Note that Group and Supergroup are two similar but still different types
of chat groups! Use is_group_chat to check if it’s any kind of group
chat.
See blog post
Sourcepub fn is_supergroup(&self) -> bool
pub fn is_supergroup(&self) -> bool
Note that Group and Supergroup are two similar but still different types
of chat groups! Use is_group_chat to check if it’s any kind of group
chat.
See blog post
pub fn is_channel(&self) -> bool
pub fn is_chat(&self) -> bool
pub fn is_group_chat(&self) -> bool
Source§impl ChatFullInfo
Getters
impl ChatFullInfo
Getters
Sourcepub fn username(&self) -> Option<&str>
pub fn username(&self) -> Option<&str>
A username, for private chats, supergroups and channels if available.
Sourcepub fn linked_chat_id(&self) -> Option<i64>
pub fn linked_chat_id(&self) -> Option<i64>
Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa.
Sourcepub fn permissions(&self) -> Option<ChatPermissions>
pub fn permissions(&self) -> Option<ChatPermissions>
A default chat member permissions, for groups and supergroups.
Sourcepub fn sticker_set_name(&self) -> Option<&str>
pub fn sticker_set_name(&self) -> Option<&str>
For supergroups, name of group sticker set.
Sourcepub fn can_set_sticker_set(&self) -> bool
pub fn can_set_sticker_set(&self) -> bool
true, if the bot can change the group sticker set.
Sourcepub fn custom_emoji_sticker_set_name(&self) -> Option<&str>
pub fn custom_emoji_sticker_set_name(&self) -> Option<&str>
For supergroups, the name of the group’s custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
Sourcepub fn slow_mode_delay(&self) -> Option<Seconds>
pub fn slow_mode_delay(&self) -> Option<Seconds>
The minimum allowed delay between consecutive messages sent by each unpriviledged user.
Sourcepub fn unrestrict_boost_count(&self) -> Option<u16>
pub fn unrestrict_boost_count(&self) -> Option<u16>
Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa.
Sourcepub fn location(&self) -> Option<&ChatLocation>
pub fn location(&self) -> Option<&ChatLocation>
The location to which the supergroup is connected.
Sourcepub fn join_to_send_messages(&self) -> bool
pub fn join_to_send_messages(&self) -> bool
true, if users need to join the supergroup before they can send
messages.
Sourcepub fn join_by_request(&self) -> bool
pub fn join_by_request(&self) -> bool
true, if all users directly joining the supergroup need to be approved
by supergroup administrators.
Sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description, for groups, supergroups and channel chats.
Sourcepub fn invite_link(&self) -> Option<&str>
pub fn invite_link(&self) -> Option<&str>
A chat invite link, for groups, supergroups and channel chats. Each
administrator in a chat generates their own invite links, so the
bot must first generate the link using
ExportChatInviteLink.
Sourcepub fn has_protected_content(&self) -> bool
pub fn has_protected_content(&self) -> bool
true, if messages from the chat can’t be forwarded to other chats.
Sourcepub fn available_reactions(&self) -> Option<&[ReactionType]>
pub fn available_reactions(&self) -> Option<&[ReactionType]>
List of available reactions allowed in the chat. If omitted, then all emoji reactions are allowed.
Sourcepub fn first_name(&self) -> Option<&str>
pub fn first_name(&self) -> Option<&str>
A first name of the other party in a private chat.
Sourcepub fn has_private_forwards(&self) -> bool
pub fn has_private_forwards(&self) -> bool
true, if privacy settings of the other party in the private chat
allows to use tg://user?id=<user_id> links only in chats with the
user.
Sourcepub fn mentioned_users(&self) -> impl Iterator<Item = &User>
pub fn mentioned_users(&self) -> impl Iterator<Item = &User>
Returns all users that are “contained” in this Chat
structure.
This might be useful to track information about users.
Note that this function can return duplicate users.
Trait Implementations§
Source§impl Clone for ChatFullInfo
impl Clone for ChatFullInfo
Source§fn clone(&self) -> ChatFullInfo
fn clone(&self) -> ChatFullInfo
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChatFullInfo
impl Debug for ChatFullInfo
Source§impl<'de> Deserialize<'de> for ChatFullInfo
impl<'de> Deserialize<'de> for ChatFullInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatFullInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ChatFullInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ChatFullInfo
impl PartialEq for ChatFullInfo
Source§impl Serialize for ChatFullInfo
impl Serialize for ChatFullInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ChatFullInfo
Auto Trait Implementations§
impl Forget for ChatFullInfo
impl Freeze for ChatFullInfowhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const ChatFullInfoPublic is !null: Freeze,
PhantomData<ChatFullInfoPublic>: Freeze,
*const ChatFullInfoPrivate is !null: Freeze,
PhantomData<ChatFullInfoPrivate>: Freeze,
PhantomData<u8>: Freeze,
*const Message is !null: Freeze,
PhantomData<Message>: Freeze,
&'static str: Freeze,
PhantomData<(Indexed, Indexed)>: Freeze,
PhantomData<Rgb>: Freeze,
NonZero<i32>: Freeze,
Utc: Freeze,
PhantomData<TonWalletCardSticker>: Freeze,
PhantomData<EmojiType>: Freeze,
*const UniqueGift is !null: Freeze,
PhantomData<UniqueGift>: Freeze,
impl Move for ChatFullInfo
impl RefUnwindSafe for ChatFullInfo
impl Send for ChatFullInfo
impl Sync for ChatFullInfowhere
RawVecInner: Sync,
BoxRaw<ChatFullInfoPublic>: Sync,
BoxRaw<ChatFullInfoPrivate>: Sync,
BoxRaw<Message>: Sync,
NonZero<i32>: Sync,
Utc: Sync,
BoxRaw<UniqueGift>: Sync,
impl Unpin for ChatFullInfo
impl UnsafeUnpin for ChatFullInfowhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const ChatFullInfoPublic is !null: UnsafeUnpin,
PhantomData<ChatFullInfoPublic>: UnsafeUnpin,
*const ChatFullInfoPrivate is !null: UnsafeUnpin,
PhantomData<ChatFullInfoPrivate>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const Message is !null: UnsafeUnpin,
PhantomData<Message>: UnsafeUnpin,
&'static str: UnsafeUnpin,
PhantomData<(Indexed, Indexed)>: UnsafeUnpin,
PhantomData<Rgb>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
PhantomData<TonWalletCardSticker>: UnsafeUnpin,
PhantomData<EmojiType>: UnsafeUnpin,
*const UniqueGift is !null: UnsafeUnpin,
PhantomData<UniqueGift>: UnsafeUnpin,
impl UnwindSafe for ChatFullInfowhere
RawVecInner: UnwindSafe,
BoxRaw<ChatFullInfoPublic>: UnwindSafe,
BoxRaw<ChatFullInfoPrivate>: UnwindSafe,
BoxRaw<Message>: UnwindSafe,
&'static str: UnwindSafe,
NonZero<i32>: UnwindSafe,
Utc: UnwindSafe,
BoxRaw<UniqueGift>: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Erasable for T
impl<T> Erasable for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more