Skip to content

Commit

Permalink
Fix: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xtrime-ru committed Jan 17, 2023
1 parent 0dd8ff5 commit 35a4566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ Fast, simple, async php telegram api server:
1. `php server.php`

## 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/).
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. Start TelegramApiServer in cli:
* docker:
Expand Down
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
}

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;

0 comments on commit 35a4566

Please sign in to comment.