MadelineProtoDocs/old_docs/API_docs_v42/constructors/folder.md
2020-09-12 12:47:38 +02:00

1.3 KiB

title description image
folder Folder https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: folder

Back to constructors index

Folder

Attributes:

Name Type Required Description
autofill_new_broadcasts Bool Optional Automatically add new channels to this folder
autofill_public_groups Bool Optional Automatically add joined new public supergroups to this folder
autofill_new_correspondents Bool Optional Automatically add new private chats to this folder
id int Yes Folder ID
title string Yes Folder title
photo ChatPhoto Optional Folder picture

Type: Folder

Example:

$folder = ['_' => 'folder', 'autofill_new_broadcasts' => Bool, 'autofill_public_groups' => Bool, 'autofill_new_correspondents' => Bool, 'id' => int, 'title' => 'string', 'photo' => ChatPhoto];

Or, if you're into Lua:

folder={_='folder', autofill_new_broadcasts=Bool, autofill_public_groups=Bool, autofill_new_correspondents=Bool, id=int, title='string', photo=ChatPhoto}