mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 17:55:35 +01:00
2.4 KiB
2.4 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
messages.getChatInviteImporters | Get info about the users that joined the chat using a specific chat invite | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/messages_getChatInviteImporters.html |
Method: messages.getChatInviteImporters
Get info about the users that joined the chat using a specific chat invite
Parameters:
Name | Type | Description | Required |
---|---|---|---|
requested | Bool | If set, only returns info about users with pending join requests » | Optional |
peer | Username, chat ID, Update, Message or InputPeer | Chat | Optional |
link | string | Invite link | Optional |
q | string | Search 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_date | int | Offsets for pagination, for more info click here | Optional |
offset_user | Username, chat ID, Update, Message or InputUser | User ID for pagination: if set, offset_date must also be set. |
Optional |
limit | int | Maximum number of results to return, see pagination | Optional |
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();
$messages_ChatInviteImporters = $MadelineProto->messages->getChatInviteImporters(requested: $Bool, peer: $InputPeer, link: 'string', q: 'string', offset_date: $int, offset_user: $InputUser, limit: $int, );