Layer 228
Community
constructor
community#65efe954 flags:# creator:flags.0?true left:flags.2?true min:flags.12?true flags2:# collapsed_in_dialogs:flags2.20?true id:long access_hash:flags.13?long title:string photo:ChatPhoto date:int admin_rights:flags.14?ChatAdminRights default_banned_rights:flags.18?ChatBannedRights = Chat;
Parameters
| Name | Type | Description |
|---|---|---|
| Creator | flags.0?true | |
| Left | flags.2?true | |
| Min | flags.12?true | |
| CollapsedInDialogs | flags2.20?true | |
| Id | long | |
| AccessHash | flags.13?long | |
| Title | string | |
| Photo | ChatPhoto | |
| Date | int | |
| AdminRights | flags.14?ChatAdminRights | |
| DefaultBannedRights | flags.18?ChatBannedRights |
Returns
ChatGogram Example
// Creating Community constructor obj := &tg.Community{ CollapsedInDialogs: nil, Id: int64(1234567890), Title: "Example", Photo: &tg.ChatPhotoObj{}, Date: int(time.Now().Unix()), // Optional fields: // Creator: true, // Left: true, // Min: true, // AccessHash: int64(5678901234567890), // ... more optional fields }