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
CreatorboolWhether the current user is the creator of the group
LeftboolWhether the current user has left the group
DeactivatedboolWhether the group was migrated
CallActiveboolWhether a group call is currently active
CallNotEmptyboolWhether there's anyone in the group call
NoforwardsboolWhether 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.
MigratedToInputChannelClassMeans this chat was upgraded to a supergroup
AdminRightsChatAdminRightsAdmin rights of the user in the group
DefaultBannedRightsChatBannedRightsDefault banned rights of all users in the group

References