Skip to content

Commit 56bf8fc

Browse files
committed
Update readme
1 parent f94f06e commit 56bf8fc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ $results = $telegram->sendToActiveChats(
254254
null //'yyyy-mm-dd hh:mm:ss' date range to
255255
);
256256
```
257-
257+
You can also broadcast message to users, from the private chat with your bot. Take a look at the admin interace below.
258258
## Utilis
259259
### MySQL storage (Recomended)
260260
If you want insert in database messages/users/chats for further usage
@@ -309,8 +309,7 @@ Inside *examples/Commands/* there are some sample that show how to use types.
309309
With this method you can set some command specified parameters, for
310310
example, google geocode/timezone api key for date command:
311311
```php
312-
$telegram->setCommandConfig('date',
313-
['google_api_key'=>'your_google_api_key_here']);
312+
$telegram->setCommandConfig('date', ['google_api_key' => 'your_google_api_key_here']);
314313
```
315314

316315
### Admin Commands
@@ -321,14 +320,14 @@ Enabling this feature, the admin bot can perform some super user command like:
321320
You can specify one or more admin with this option:
322321

323322
```php
324-
$telegram->enableAdmins(array('TelegramUserID','Othersid'));
323+
$telegram->enableAdmins(['your_telegram_user_id','Othersid']);
325324
```
326325
Telegram user id can be retrieved with the command **/whoami**.
327326
Admin commands are stored in *src/Admin/* folder.
328327
To know all the commands avaiable type **/help**.
329328

330329
#### Channel Administration (NEW!)
331-
Follow those steps:
330+
To enable this feature follow those steps:
332331
- Add your bot as channel administrator, this can be done with any telegram client.
333332
- Enable admin interface for your user as explained in the admin section above.
334333
- Enter your channel name as a param for the sendtoall command:

0 commit comments

Comments
 (0)