Inherits Object.
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.
Public Fields | |
int53 | id_ |
Supergroup or channel identifier. | |
string | username_ |
Username of the supergroup or channel; empty for private supergroups or channels. | |
int32 | date_ |
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. | |
object_ptr< ChatMemberStatus > | status_ |
Status of the current user in the supergroup or channel; custom title will be always empty. | |
int32 | member_count_ |
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 searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules. | |
bool | has_linked_chat_ |
True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel. | |
bool | has_location_ |
True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup. | |
bool | sign_messages_ |
True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels. | |
bool | is_slow_mode_enabled_ |
True, if the slow mode is enabled in the supergroup. | |
bool | is_channel_ |
True, if the supergroup is a channel. | |
bool | is_broadcast_group_ |
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. | |
bool | is_verified_ |
True, if the supergroup or channel is verified. | |
string | restriction_reason_ |
If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted. | |
bool | is_scam_ |
True, if many users reported this supergroup or channel as a scam. | |
bool | is_fake_ |
True, if many users reported this supergroup or channel as a fake account. | |
Public Instance Methods | |
supergroup () | |
supergroup (int53 id_, string const &username_, int32 date_, object_ptr< ChatMemberStatus > &&status_, int32 member_count_, bool has_linked_chat_, bool has_location_, bool sign_messages_, bool is_slow_mode_enabled_, bool is_channel_, bool is_broadcast_group_, bool is_verified_, string const &restriction_reason_, bool is_scam_, bool is_fake_) | |
std::int32_t | get_id () const final |
void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -722213067 |
Identifier uniquely determining a type of the object. | |
supergroup | ( | ) |
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.
supergroup | ( | int53 | id_, |
string const & | username_, | ||
int32 | date_, | ||
object_ptr< ChatMemberStatus > && | status_, | ||
int32 | member_count_, | ||
bool | has_linked_chat_, | ||
bool | has_location_, | ||
bool | sign_messages_, | ||
bool | is_slow_mode_enabled_, | ||
bool | is_channel_, | ||
bool | is_broadcast_group_, | ||
bool | is_verified_, | ||
string const & | restriction_reason_, | ||
bool | is_scam_, | ||
bool | is_fake_ | ||
) |
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.
[in] | id_ | Supergroup or channel identifier. |
[in] | username_ | Username of the supergroup or channel; empty for private supergroups or channels. |
[in] | date_ | 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. |
[in] | status_ | Status of the current user in the supergroup or channel; custom title will be always empty. |
[in] | member_count_ | 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 searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules. |
[in] | has_linked_chat_ | True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel. |
[in] | has_location_ | True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup. |
[in] | sign_messages_ | True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels. |
[in] | is_slow_mode_enabled_ | True, if the slow mode is enabled in the supergroup. |
[in] | is_channel_ | True, if the supergroup is a channel. |
[in] | is_broadcast_group_ | 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. |
[in] | is_verified_ | True, if the supergroup or channel is verified. |
[in] | restriction_reason_ | If non-empty, contains a human-readable description of the reason why access to this supergroup or channel must be restricted. |
[in] | is_scam_ | True, if many users reported this supergroup or channel as a scam. |
[in] | is_fake_ | True, if many users reported this supergroup or channel as a fake account. |
|
inlinefinalvirtual |
|
finalvirtual |