From d1f314bba580c7d3d07f34127d2940502610c509 Mon Sep 17 00:00:00 2001 From: Alexander Pankratov Date: Sun, 20 Jan 2019 20:20:41 +0300 Subject: [PATCH] Direct Api access. --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7e50cf1..358423c 100644 --- a/README.md +++ b/README.md @@ -93,8 +93,9 @@ Fast, simple, async php telegram client and parser: MadelineProto + Swoole Serve * Url: `http://%address%:%port%/api/%method%/?%param1%=%val%` * All available methods you can find in `src/Client.php`. * Important: All parameters must be passed at strict order! - * Important: api available only from ip in whitelist. By default it is: `127.0.0.1` - You can add client ip in .env file to `API_CLIENT_WHITELIST` (use json format) + * Important: api available only from ip in whitelist. + By default it is: `127.0.0.1` + You can add client ip in .env file to `API_CLIENT_WHITELIST` (use json format) Examples: * get_info about channel/user: `http://127.0.0.1:9503/api/getInfo/?id=@xtrime`