From 2347c8f433dce0577d05a81744a079c5632ceeba Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 21 Jul 2023 20:15:04 +0200 Subject: [PATCH] Improve example --- README.md | 1 + examples/tgstories_dl_bot.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0360e7c0f..665f24ce1 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ The following open source projects were created using MadelineProto: you can dir * [TelegramApiServer](https://github.com/xtrime-ru/TelegramApiServer) - Fast, simple, async php telegram api server: an HTTP JSON API for MadelineProto! +* [`tgstories_dl_bot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/tgstories_dl_bot.php) - Source code of [@tgstories_dl_bot](https://t.me/tgstories_dl_bot) - Bot to download any Telegram Story! * [`downloadRenameBot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/downloadRenameBot.php) - Download files by URL and rename Telegram files using this async parallelized bot! * [`secret_bot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/secret_bot.php) - Secret chat bot! * [`pipesbot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/pipesbot.php) - Creating inline bots and using other inline bots via a userbot! diff --git a/examples/tgstories_dl_bot.php b/examples/tgstories_dl_bot.php index 3b1531b07..9205fa4fc 100644 --- a/examples/tgstories_dl_bot.php +++ b/examples/tgstories_dl_bot.php @@ -41,7 +41,7 @@ if (class_exists(API::class)) { // Login as a user $u = new API('stories_user.madeline'); if (!$u->getSelf()) { - $u->echo("Please login as a user!"); + if (!$_GET) $u->echo("Please login as a user!"); $u->start(); } if (!$u->isSelfUser()) {