@@ -25,7 +25,7 @@ and have interactions in a matter of minutes.
25
25
The Bot can:
26
26
- retrive update with webhook and getUpdate methods.
27
27
- supports all types and methods according to Telegram API (2015 October 8).
28
- - handle commads in chat with other bots.
28
+ - handle commands in chat with other bots.
29
29
30
30
It is ready for the channels support.
31
31
@@ -172,9 +172,9 @@ try {
172
172
```
173
173
174
174
###Self Signed Certificate
175
- To upload the certificate add the certificate path as param in * set.php* :
175
+ To upload the certificate, add the certificate path as param in * set.php* :
176
176
``` php
177
- $result = $telegram->setWebHook($url, $certificate_path);
177
+ $result = $telegram->setWebHook($url, $certificate_path);
178
178
```
179
179
180
180
## getUpdate installation
@@ -233,18 +233,18 @@ $result = Request::sendPhoto($data);
233
233
234
234
* sendAudio* , * sendDocument* , * sendSticker* , * sendVideo* and * sendVoice* works in the same way.
235
235
See * ImageCommand.php* for a full example.
236
- #### Send Chat Action
236
+ ###Send Chat Action
237
237
238
238
``` php
239
239
Request::sendChatAction(['chat_id' => $chat_id, 'action' => 'typing']);
240
240
```
241
- #### getUserProfilePhoto
241
+ ###getUserProfilePhoto
242
242
Retrieve the user photo, see the * WhoamiCommand.php* for a full example.
243
243
244
- #### GetFile and dowloadFile
244
+ ###GetFile and dowloadFile
245
245
Get the file path and download it, see the * WhoamiCommand.php* for a full example.
246
246
247
- #### Send message to all active chats
247
+ ### Send message to all active chats
248
248
To do this you have to enable the Mysql connection.
249
249
Here's an example of use:
250
250
@@ -278,7 +278,7 @@ $telegram->enableMySQL($credentials, $BOT_NAME.'_');
278
278
```
279
279
280
280
### Commands
281
- The bot is able to recognise commands in chat with multiple bot(/command@mybot ).
281
+ The bot is able to recognise commands in chat with multiple bot (/command@mybot ).
282
282
It can execute command triggering a chat event. Here's the list:
283
283
284
284
- Group chat created (** GroupchatcreatedCommand.php** )
@@ -326,7 +326,7 @@ $telegram->setCommandConfig('date',
326
326
array('google_api_key'=>'your_google_api_key_here'));
327
327
```
328
328
### Upload and Download directory
329
- You can overwrite the default Upload and download directory with:
329
+ You can overwrite the default Upload and Download directory with:
330
330
``` php
331
331
$telegram->setDownloadPath("yourpath/Download");
332
332
$telegram->setUploadPath("yourpath../Upload");
0 commit comments