mirror of
https://github.com/danog/TelegramApiServer.git
synced 2024-11-30 04:19:13 +01:00
Fix: update readme
This commit is contained in:
parent
0dd8ff5b62
commit
35a4566189
@ -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:
|
||||||
|
@ -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;
|
Loading…
Reference in New Issue
Block a user