Commit ebae5739 authored by Armando Lüscher's avatar Armando Lüscher

Update command config examples to include weather command.

parent 9f3388d4
...@@ -464,10 +464,14 @@ Inside *examples/Commands/* there are some samples that show how to use types. ...@@ -464,10 +464,14 @@ Inside *examples/Commands/* there are some samples that show how to use types.
#### Commands Configuration #### Commands Configuration
With this method you can set some command specific parameters, for With this method you can set some command specific parameters:
example, google geocode/timezone api key for date command:
```php ```php
//Google geocode/timezone API key for date command
$telegram->setCommandConfig('date', ['google_api_key' => 'your_google_api_key_here']); $telegram->setCommandConfig('date', ['google_api_key' => 'your_google_api_key_here']);
//OpenWeatherMap API key for weather command
$telegram->setCommandConfig('weather', ['owm_api_key' => 'your_owm_api_key_here']);
``` ```
### Admin Commands ### Admin Commands
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment