Link Search Menu Expand Document

Method: help.getRecentMeUrls

Back to methods index

Get recently used t.me links.

When installing official applications from “Download Telegram” buttons present in t.me 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 t.me pages the user recently opened, before installing Telegram.

Parameters:

NameTypeDescriptionRequired
refererstringReferrerYes

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('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.
$help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(referer: 'string', );