Method: chatlists.exportChatlistInvite
Export a folder », creating a chat folder deep link ».
Parameters:
Name | Type | Description | Required |
---|---|---|---|
chatlist | InputChatlist | The folder to export | Yes |
title | string | An optional name for the link | Optional |
peers | Array of Username, chat ID, Update, Message or InputPeer | The 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('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$chatlists_ExportedChatlistInvite = $MadelineProto->chatlists->exportChatlistInvite(chatlist: $InputChatlist, title: 'string', peers: [$InputPeer, $InputPeer], );