Fix: update readme

This commit is contained in:
Alexander Pankratov 2023-01-17 14:00:55 +01:00
parent 0dd8ff5b62
commit 35a4566189
2 changed files with 2 additions and 2 deletions

View File

@ -44,9 +44,9 @@ Fast, simple, async php telegram api server:
1. `php server.php` 1. `php server.php`
## First start ## First start
1. Ctrl + C to stop TelegramApiServer if running.
1. Get app_id and app_hash at [my.telegram.org](https://my.telegram.org/). 1. Get app_id and app_hash at [my.telegram.org](https://my.telegram.org/).
Only one app_id needed for any amount of users and bots. Only one app_id needed for any amount of users and bots.
1. Create .env file: `cp .env.docker.exaple .env.docker` or `cp .env.exaple .env`
1. Fill app_id and app_hash in `.env.docker` or `.env`. 1. Fill app_id and app_hash in `.env.docker` or `.env`.
1. Start TelegramApiServer in cli: 1. Start TelegramApiServer in cli:
* docker: * docker:

View File

@ -78,7 +78,7 @@ if (empty($settings['telegram']['connection_settings']['all']['proxy_extra']['ad
} }
if (empty($settings['telegram']['app_info']['api_id'])) { if (empty($settings['telegram']['app_info']['api_id'])) {
unset($settings['telegram']['app_info']); throw new InvalidArgumentException('Need to fill TELEGRAM_API_ID in .env.docker or .env');
} }
return $settings; return $settings;