pub struct Supergroup {Show 21 fields
pub id: i64,
pub usernames: Option<Usernames>,
pub date: i32,
pub status: ChatMemberStatus,
pub member_count: i32,
pub boost_level: i32,
pub has_linked_chat: bool,
pub has_location: bool,
pub sign_messages: bool,
pub join_to_send_messages: bool,
pub join_by_request: bool,
pub is_slow_mode_enabled: bool,
pub is_channel: bool,
pub is_broadcast_group: bool,
pub is_forum: bool,
pub is_verified: bool,
pub restriction_reason: String,
pub is_scam: bool,
pub is_fake: bool,
pub has_active_stories: bool,
pub has_unread_active_stories: bool,
}
Expand description
Represents a supergroup or channel with zero or more members (subscribers in the case of channels). From the point of view of the system, a channel is a special kind of a supergroup: only administrators can post and see the list of members, and posts from all administrators use the name and photo of the channel instead of individual names and profile photos. Unlike supergroups, channels can have an unlimited number of subscribers
Fields§
§id: i64
Supergroup or channel identifier
usernames: Option<Usernames>
Usernames of the supergroup or channel; may be null
date: i32
Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
status: ChatMemberStatus
Status of the current user in the supergroup or channel; custom title will always be empty
member_count: i32
Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received through getChatSimilarChats, getChatsToSendStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchChatsNearby, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or for public chats in which where sent messages and posted stories from publicForwards, or for public chats in which where sent messages from getMessagePublicForwards response
boost_level: i32
Approximate boost level for the chat
has_linked_chat: bool
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
has_location: bool
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
sign_messages: bool
True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels
join_to_send_messages: bool
True, if users need to join the supergroup before they can send messages. Always true for channels and non-discussion supergroups
join_by_request: bool
True, if all users directly joining the supergroup need to be approved by supergroup administrators. Always false for channels and supergroups without username, location, or a linked chat
is_slow_mode_enabled: bool
True, if the slow mode is enabled in the supergroup
is_channel: bool
True, if the supergroup is a channel
is_broadcast_group: bool
True, if the supergroup is a broadcast group, i.e. only administrators can send messages and there is no limit on the number of members
is_forum: bool
True, if the supergroup is a forum with topics
is_verified: bool
True, if the supergroup or channel is verified
restriction_reason: String
If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted
is_scam: bool
True, if many users reported this supergroup or channel as a scam
is_fake: bool
True, if many users reported this supergroup or channel as a fake account
has_active_stories: bool
True, if the supergroup or channel has non-expired stories available to the current user
has_unread_active_stories: bool
True, if the supergroup or channel has unread non-expired stories available to the current user
Trait Implementations§
Source§impl Clone for Supergroup
impl Clone for Supergroup
Source§fn clone(&self) -> Supergroup
fn clone(&self) -> Supergroup
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more