File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,10 @@ $telegram->addCommandsPath($COMMANDS_FOLDER);
249
249
Inside * CommandsExamples/* there are some sample that show how to use types.
250
250
251
251
### 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
+
253
256
You can specify one or more admin with this option:
254
257
255
258
``` php
@@ -285,7 +288,7 @@ print_r($results);
285
288
```
286
289
287
290
### Logging
288
- Thrown Exception are stored in TelegramException.log file.
291
+ Thrown Exception are stored in TelegramException.log file (in the base directory) .
289
292
290
293
Incoming update (json string from webhook and getUpdates) can be logged on a text file, set those options with the methods:
291
294
``` php
Original file line number Diff line number Diff line change @@ -158,7 +158,7 @@ public static function executeCurl($action, array $data)
158
158
if ($ result === false ) {
159
159
throw new TelegramException (curl_error ($ ch ), curl_errno ($ ch ));
160
160
}
161
- if (empty ($ result )) {
161
+ if (empty ($ result ) | is_null ( $ result ) ) {
162
162
throw new TelegramException ('Empty server response ' );
163
163
}
164
164
You can’t perform that action at this time.
0 commit comments