@@ -20,7 +20,7 @@ Installation and usage is pretty straight forward:
20
20
Either run this command in your command line:
21
21
22
22
``` bash
23
- composer require php-telegram-bot/telegram-bot-manager:^1.2
23
+ composer require php-telegram-bot/telegram-bot-manager:^1.3
24
24
```
25
25
26
26
** or**
@@ -29,7 +29,7 @@ For existing Composer projects, edit your project's `composer.json` file to requ
29
29
30
30
``` yaml
31
31
" require " : {
32
- " php-telegram-bot/telegram-bot-manager " : " ^1.2 "
32
+ " php-telegram-bot/telegram-bot-manager " : " ^1.3 "
33
33
}
34
34
```
35
35
and then run ` composer update `
@@ -42,12 +42,12 @@ It is possible however, to override the core version that this library requires:
42
42
43
43
``` yaml
44
44
" require " : {
45
- " php-telegram-bot/telegram-bot-manager " : " ^1.2 " ,
46
- " longman/telegram-bot " : " dev-develop as 0.52 "
45
+ " php-telegram-bot/telegram-bot-manager " : " ^1.3 " ,
46
+ " longman/telegram-bot " : " dev-develop as 0.54 "
47
47
}
48
48
```
49
49
50
- This example will pull the develop version of the core library, making it appear to be version 0.48 , which then satisfies the requirement.
50
+ This example will pull the develop version of the core library, making it appear to be version 0.54 , which then satisfies the requirement.
51
51
52
52
### Performing actions
53
53
@@ -247,11 +247,12 @@ $bot = new BotManager([
247
247
// (array) Mysql credentials to connect a database (necessary for [`getUpdates`](#using-getupdates-method) method!).
248
248
'mysql' => [
249
249
'host' => '127.0.0.1',
250
+ 'port' => 3306, // optional
250
251
'user' => 'root',
251
252
'password' => 'root',
252
253
'database' => 'telegram_bot',
253
- 'table_prefix' => 'tbl_prfx_', // optional
254
- 'encoding' => 'utf8mb4', // optional
254
+ 'table_prefix' => 'tbl_prfx_', // optional
255
+ 'encoding' => 'utf8mb4', // optional
255
256
],
256
257
257
258
// (array) List of configurable paths.
@@ -318,11 +319,12 @@ $bot = new BotManager([
318
319
// Extras.
319
320
'mysql' => [
320
321
'host' => '127.0.0.1',
322
+ 'port' => 3306, // optional
321
323
'user' => 'root',
322
324
'password' => 'root',
323
325
'database' => 'telegram_bot',
324
- 'table_prefix' => 'tbl_prfx_', // optional
325
- 'encoding' => 'utf8mb4', // optional
326
+ 'table_prefix' => 'tbl_prfx_', // optional
327
+ 'encoding' => 'utf8mb4', // optional
326
328
],
327
329
]);
328
330
```
0 commit comments