Link Search Menu Expand Document

Method: chatlists.exportChatlistInvite

Back to methods index

Export a folder », creating a chat folder deep link ».


chatlistInputChatlistThe folder to exportYes
titlestringAn optional name for the linkOptional
peersArray of Username, chat ID, Update, Message or InputPeerThe list of channels, group and supergroups to share with the link. Basic groups will automatically be converted to supergroups when invoking the method.Yes

Return type: chatlists.ExportedChatlistInvite

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$chatlists_ExportedChatlistInvite = $MadelineProto->chatlists->exportChatlistInvite(chatlist: $InputChatlist, title: 'string', peers: [$InputPeer, $InputPeer], );