Layer 220
Chat
Info about a group.
constructor
chat#41cbf256 flags:# creator:flags.0?true left:flags.2?true deactivated:flags.5?true call_active:flags.23?true call_not_empty:flags.24?true noforwards:flags.25?true id:long title:string photo:ChatPhoto participants_count:int date:int version:int migrated_to:flags.6?InputChannel admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| Creator | flags.0?true | Whether the current user is the creator of the group |
| Left | flags.2?true | Whether the current user has left the group |
| Deactivated | flags.5?true | Whether the group was migrated |
| CallActive | flags.23?true | Whether a group call is currently active |
| CallNotEmpty | flags.24?true | Whether there's anyone in the group call |
| Noforwards | flags.25?true | Whether this group is protected, thus does not allow forwarding messages from it |
| Id | long | ID of the group, see here for more info and the available ID range. |
| Title | string | Title |
| Photo | ChatPhoto | Chat photo |
| ParticipantsCount | int | Participant count |
| Date | int | Date of creation of the group |
| Version | int | Used in basic groups to reorder updates and make sure that all of them were received. |
| MigratedTo | flags.6?InputChannel | Means this chat was upgraded to a supergroup |
| AdminRights | flags.14?ChatAdminRights | Admin rights of the user in the group |
| DefaultBannedRights | flags.18?ChatBannedRights | Default banned rights of all users in the group |
Returns
ChatGogram Example
// Creating Chat constructor obj := &tg.Chat{ Id: int64(0), Title: "...", Photo: &tg.ChatPhoto{}, ParticipantsCount: 0, Date: 0, Version: 0, // Optional fields: // Creator: true, // Left: true, // Deactivated: true, // CallActive: true, // ... more optional fields }