Skip to main content

chat

Info about a group. When updating the local peer database, all fields from the newly received constructor take priority over the old constructor cached locally (including by removing fields that aren't set in the new constructor). See here » for an implementation of the logic to use when updating the local user peer database.

type tg.Chat struct { /* ... */ }

Implements Chat.

Fields​

NameTypeRequiredDescription
Creatorbool—Whether the current user is the creator of the group
Leftbool—Whether the current user has left the group
Deactivatedbool—Whether the group was migrated
CallActivebool—Whether a group call is currently active
CallNotEmptybool—Whether there's anyone in the group call
Noforwardsbool—Whether this group is protected, thus does not allow forwarding messages from it
IDint64yesID of the group, see here » for more info and the available ID range.
TitlestringyesTitle
PhotoChatPhotoClassyesChat photo
ParticipantsCountintyesParticipant count
DateintyesDate of creation of the group
VersionintyesUsed in basic groups to reorder updates and make sure that all of them were received.
MigratedToInputChannelClass—Means this chat was upgraded to a supergroup
AdminRightsChatAdminRights—Admin rights of the user in the group
DefaultBannedRightsChatBannedRights—Default banned rights of all users in the group

References​