@@ -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)
260260If 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.
309309With this method you can set some command specified parameters, for
310310example, 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:
321320You 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```
326325Telegram user id can be retrieved with the command ** /whoami** .
327326Admin commands are stored in * src/Admin/* folder.
328327To 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