Skip to content

Commit

Permalink
bugfix and README
Browse files Browse the repository at this point in the history
  • Loading branch information
MBoretto committed Oct 13, 2015
1 parent 7283a1d commit f4b203b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,10 @@ $telegram->addCommandsPath($COMMANDS_FOLDER);
Inside *CommandsExamples/* there are some sample that show how to use types.

### Admin Commands
Enabling this feature, the admin bot can perform some super user command like send message to all.
Enabling this feature, the admin bot can perform some super user command like:
- Send message to all chats
- List all the chats started with the bot (new!)

You can specify one or more admin with this option:

```php
Expand Down Expand Up @@ -285,7 +288,7 @@ print_r($results);
```

### Logging
Thrown Exception are stored in TelegramException.log file.
Thrown Exception are stored in TelegramException.log file (in the base directory).

Incoming update (json string from webhook and getUpdates) can be logged on a text file, set those options with the methods:
```php
Expand Down
2 changes: 1 addition & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ public static function executeCurl($action, array $data)
if ($result === false) {
throw new TelegramException(curl_error($ch), curl_errno($ch));
}
if (empty($result)) {
if (empty($result) | is_null($result)) {
throw new TelegramException('Empty server response');
}

Expand Down

0 comments on commit f4b203b

Please sign in to comment.