Supergroup¶
Represents a supergroup or channel with zero or more members (subscribers in the case of channels)
Supergroup(
id: int53,
usernames: Usernames,
date: int32,
status: ChatMemberStatus,
member_count: int32,
boost_level: int32,
has_automatic_translation: Bool,
has_linked_chat: Bool,
has_location: Bool,
sign_messages: Bool,
show_message_sender: Bool,
join_to_send_messages: Bool,
join_by_request: Bool,
is_slow_mode_enabled: Bool,
is_channel: Bool,
is_broadcast_group: Bool,
is_forum: Bool,
is_direct_messages_group: Bool,
is_administered_direct_messages_group: Bool,
verification_status: VerificationStatus,
has_direct_messages_group: Bool,
has_forum_tabs: Bool,
restriction_info: RestrictionInfo,
paid_message_star_count: int53,
active_story_state: ActiveStoryState
) → Supergroup
id¶
int53
Supergroup or channel identifier
usernames¶
Usernames of the supergroup or channel; may be null
date¶
int32
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¶
Status of the current user in the supergroup or channel
member_count¶
int32
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, getChatsToPostStories, getCreatedPublicChats, getGroupsInCommon, getInactiveSupergroupChats, getRecommendedChats, getSuitableDiscussionChats, getUserPrivacySettingRules, getVideoChatAvailableParticipants, searchPublicChats, or in chatFolderInviteLinkInfo.missing_chat_ids, or in userFullInfo.personal_chat_id, or for chats with messages or stories from publicForwards and foundStories
boost_level¶
int32
Approximate boost level for the chat
has_automatic_translation¶
Bool
True, if automatic translation of messages is enabled in the channel
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 contains name of the sender. This field is only applicable to channels
show_message_sender¶
Bool
True, if messages sent to the channel have information about the sender user. 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. May be false only for discussion supergroups and channel direct messages groups
join_by_request¶
Bool
True, if all users directly joining the supergroup need to be approved by supergroup administrators
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, which can have an unlimited number of subscribers, but only administrators can post there and see the list of subscribers
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_direct_messages_group¶
Bool
True, if the supergroup is a direct message group for a channel chat
is_administered_direct_messages_group¶
Bool
True, if the supergroup is a direct messages group for a channel chat that is administered by the current user
verification_status¶
Information about verification status of the supergroup or channel; may be null if none
has_direct_messages_group¶
Bool
True, if the channel has direct messages group
has_forum_tabs¶
Bool
True, if the supergroup is a forum, which topics are shown in the same way as in channel direct messages groups
restriction_info¶
Information about the restrictions that must be applied to the corresponding supergroup or channel chat; may be null if none
paid_message_star_count¶
int53
Number of Telegram Stars that must be paid by non-administrator users of the supergroup chat for each sent message
active_story_state¶
State of active stories of the supergroup or channel; may be null if there are no active stories