Layer 220
Folder
Folder
constructor
folder#ff544e65 flags:# autofill_new_broadcasts:flags.0?true autofill_public_groups:flags.1?true autofill_new_correspondents:flags.2?true id:int title:string photo:flags.3?ChatPhoto = Folder;
Parameters
| Name | Type | Description |
|---|---|---|
| Flags | # | Flags, see TL conditional fields |
| AutofillNewBroadcasts | flags.0?true | Automatically add new channels to this folder |
| AutofillPublicGroups | flags.1?true | Automatically add joined new public supergroups to this folder |
| AutofillNewCorrespondents | flags.2?true | Automatically add new private chats to this folder |
| Id | int | Folder ID |
| Title | string | Folder title |
| Photo | flags.3?ChatPhoto | Folder picture |
Returns
FolderGogram Example
// Creating Folder constructor obj := &tg.Folder{ Id: 0, Title: "...", // Optional fields: // AutofillNewBroadcasts: true, // AutofillPublicGroups: true, // AutofillNewCorrespondents: true, // Photo: &tg.ChatPhoto{}, }