From cfb509f350c3e4f74ed854e0aee20cea89aa135c Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 31 Aug 2023 17:18:56 +0200 Subject: [PATCH] Fixes --- README.md | 1 + examples/simpleBot.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c5bcd989..04630fd89 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ The following open source projects were created using MadelineProto: you can dir * [magnaluna webradio](https://magna.madelineproto.xyz) - Multifeatured Telegram VoIP webradio * [TelegramApiServer](https://github.com/xtrime-ru/TelegramApiServer) - Fast, simple, async php telegram api server: an HTTP JSON API for MadelineProto! +* [`simpleBot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/simpleBot.php) - Extremely basic example * [`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! diff --git a/examples/simpleBot.php b/examples/simpleBot.php index f0cc22f1f..09b31d069 100644 --- a/examples/simpleBot.php +++ b/examples/simpleBot.php @@ -12,7 +12,7 @@ use danog\MadelineProto\EventHandler\Message; use danog\MadelineProto\EventHandler\SimpleFilter\Incoming; use danog\MadelineProto\SimpleEventHandler; -// Load via composer +// Load via composer (RECOMMENDED, see https://docs.madelineproto.xyz/docs/INSTALLATION.html#composer-from-scratch) if (file_exists('vendor/autoload.php')) { require_once 'vendor/autoload.php'; } else {