850 B
850 B
title | description | image |
---|---|---|
contacts.getSaved | Get saved contacts | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |
Method: contacts.getSaved
Get saved contacts
Return type: Vector_of_SavedContact
Can bots use this method: YES
MadelineProto Example (now async!):
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
define('MADELINE_BRANCH', '');
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Vector_of_SavedContact = $MadelineProto->contacts->getSaved();
Or, if you're into Lua:
Vector_of_SavedContact = contacts.getSaved({})