# Method: contacts.getContactIDs

Back to methods index

Get contact by telegram IDs

# Parameters:

Name Type Description Required
hash Array of int Hash for pagination, for more info click here Optional

# Return type: Vector_of_int

# 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');

$Vector_of_int = $MadelineProto->contacts->getContactIDs(['hash' => [int, int], ]);

Or, if you’re into Lua:

Vector_of_int = contacts.getContactIDs({hash={int}, })
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.