Skip to content

Commit f4b203b

Browse files
committed
bugfix and README
1 parent 7283a1d commit f4b203b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,10 @@ $telegram->addCommandsPath($COMMANDS_FOLDER);
249249
Inside *CommandsExamples/* there are some sample that show how to use types.
250250

251251
### Admin Commands
252-
Enabling this feature, the admin bot can perform some super user command like send message to all.
252+
Enabling this feature, the admin bot can perform some super user command like:
253+
- Send message to all chats
254+
- List all the chats started with the bot (new!)
255+
253256
You can specify one or more admin with this option:
254257

255258
```php
@@ -285,7 +288,7 @@ print_r($results);
285288
```
286289

287290
### Logging
288-
Thrown Exception are stored in TelegramException.log file.
291+
Thrown Exception are stored in TelegramException.log file (in the base directory).
289292

290293
Incoming update (json string from webhook and getUpdates) can be logged on a text file, set those options with the methods:
291294
```php

src/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public static function executeCurl($action, array $data)
158158
if ($result === false) {
159159
throw new TelegramException(curl_error($ch), curl_errno($ch));
160160
}
161-
if (empty($result)) {
161+
if (empty($result) | is_null($result)) {
162162
throw new TelegramException('Empty server response');
163163
}
164164

0 commit comments

Comments
 (0)