This commit is contained in:
Daniil Gentili 2020-01-10 13:58:33 +01:00
parent f697f7bf92
commit aba6cb23e4
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

View File

@ -70,7 +70,7 @@ if (yield $wrapper->loggedIn()) {
$url = yield $wrapper->readLine('Enter the app/website\'s URL, or t.me/yourusername: ');
$description = yield $wrapper->readLine('Describe your app: ');
$app = yield $wrapper->my_telegram_org_wrapper->create_app_async(['app_title' => $app_title, 'app_shortname' => $short_name, 'app_url' => $url, 'app_platform' => 'web', 'app_desc' => $description]);
$app = yield $wrapper->createApp(['app_title' => $app_title, 'app_shortname' => $short_name, 'app_url' => $url, 'app_platform' => 'web', 'app_desc' => $description]);
}
\danog\MadelineProto\Logger::log($app);
@ -134,4 +134,4 @@ $result = yield $MadelineProto->update2fa(['password' => 'current password', 'ne
If you want to logout, you can use the update2fa function, see [here for the parameters and the result](https://docs.madelineproto.xyz/update2fa.html).
<a href="https://docs.madelineproto.xyz/docs/FEATURES.html">Next section</a>
<a href="https://docs.madelineproto.xyz/docs/FEATURES.html">Next section</a>