mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
1.5 KiB
1.5 KiB
title | description | grand_parent | parent | image | redirect_from |
---|---|---|---|---|---|
help.getRecentMeUrls | Get recently used `t.me` links. | Telegram RPC API | Methods | https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | /API_docs/methods/help_getRecentMeUrls.html |
Method: help.getRecentMeUrls
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:
Name | Type | Description | Required |
---|---|---|---|
referer | string | Referrer | Optional |
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();
$help_RecentMeUrls = $MadelineProto->help->getRecentMeUrls(referer: 'string', );