Link Search Menu Expand Document

Method: messages.getChatInviteImporters

Back to methods index

Get info about the users that joined the chat using a specific chat invite

Parameters:

NameTypeDescriptionRequired
requestedBoolIf set, only returns info about users with pending join requests »Optional
peerUsername, chat ID, Update, Message or InputPeerChatOptional
linkstringInvite linkOptional
qstringSearch for a user in the pending join requests » list: only available when the requested flag is set, cannot be used together with a specific link.Optional
offset_dateintOffsets for pagination, for more info click hereYes
offset_userUsername, chat ID, Update, Message or InputUserUser ID for paginationOptional
limitintMaximum number of results to return, see paginationYes

Return type: messages.ChatInviteImporters

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();

// PHP 8+ syntax, use an array on PHP 7.
$messages_ChatInviteImporters = $MadelineProto->messages->getChatInviteImporters(requested: Bool, peer: InputPeer, link: 'string', q: 'string', offset_date: int, offset_user: InputUser, limit: int, );