TDLib
Loading...
Searching...
No Matches
community Class Referencefinal

Inherits Object.

Description

Represents a community consisting of supergroup chats, channel chats and chats with bots.

Public Member Functions

 community ()
 community (int53 id_, bool have_access_, string const &name_, object_ptr< chatPhotoInfo > &&photo_, int32 date_, object_ptr< CommunityMemberStatus > &&status_, object_ptr< communityPermissions > &&permissions_)
void store (TlStorerToString &s, const char *field_name) const final
Public Member Functions inherited from TlObject
TlObject & operator= (const TlObject &)=delete
TlObject & operator= (TlObject &&)=default
virtual void store (TlStorerCalcLength &s) const
virtual void store (TlStorerUnsafe &s) const
 TlObject ()=default
 TlObject (const TlObject &)=delete
 TlObject (TlObject &&)=default
virtual ~TlObject ()=default

Public Attributes

int32 date_
 Point in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community.
bool have_access_
 If false, the community is inaccessible, and the only information known about the community is inside this class. Identifier of the community can't be passed to any method.
int53 id_
 Community identifier.
string name_
 Community name.
object_ptr< communityPermissions > permissions_
 Actions that non-administrator community members are allowed to take in the community.
object_ptr< chatPhotoInfo > photo_
 Community photo; may be null.
object_ptr< CommunityMemberStatus > status_
 Status of the current user in the community.

Static Public Attributes

static const std::int32_t ID = 1684827592
 Identifier uniquely determining a type of the object.

Constructor & Destructor Documentation

◆ community() [1/2]

community ( )

Represents a community consisting of supergroup chats, channel chats and chats with bots.

◆ community() [2/2]

community ( int53 id_,
bool have_access_,
string const & name_,
object_ptr< chatPhotoInfo > && photo_,
int32 date_,
object_ptr< CommunityMemberStatus > && status_,
object_ptr< communityPermissions > && permissions_ )

Represents a community consisting of supergroup chats, channel chats and chats with bots.

Parameters
[in]id_Community identifier.
[in]have_access_If false, the community is inaccessible, and the only information known about the community is inside this class. Identifier of the community can't be passed to any method.
[in]name_Community name.
[in]photo_Community photo; may be null.
[in]date_Point in time (Unix timestamp) when the community was joined, or the point in time when the community was created, in case the user is not a member of any chat in the community.
[in]status_Status of the current user in the community.
[in]permissions_Actions that non-administrator community members are allowed to take in the community.

Member Function Documentation

◆ store()

void store ( TlStorerToString & s,
const char * field_name ) const
finalvirtual

Helper function for to_string method. Appends string representation of the object to the storer.

Parameters
[in]sStorer to which object string representation will be appended.
[in]field_nameObject field_name if applicable.

Implements TlObject.


The documentation for this class was generated from the following file: