Link Search Menu Expand Document

Method: help.getRecentMeUrls

Back to methods index

Get recently used links.

When installing official applications from “Download Telegram” buttons present in pages, a referral parameter is passed to applications after installation.
If, after downloading the application, the user creates a new account (instead of logging into an existing one), the referral parameter should be imported using this method, which returns the pages the user recently opened, before installing Telegram.



Return type: help.RecentMeUrls

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(referer: 'string', );