You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+17-6Lines changed: 17 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,24 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
7
7
### Notes
8
8
-[:ledger: View file changes][Unreleased]
9
9
### Added
10
-
- Bot API 5.0 (Big update!).
11
10
### Changed
12
-
- Upgrade code to PHP 7.3. (#1136, )
13
-
- Speed up clean query (@dva-re) (#1139)
14
-
- Various code prettifications (@akalongman) (#1140, #1141, #1142, #1143)
15
11
### Deprecated
16
12
### Removed
17
13
### Fixed
18
14
### Security
19
-
- Minimum PHP 7.3. (#1136, )
15
+
16
+
## [0.70.0] - 2020-12-21
17
+
### Notes
18
+
-[:ledger: View file changes][0.70.0] ∙ [:page_with_curl: DB migration script][0.70.0-sql-migration]
19
+
-[:exclamation:][0.70.0-bc-minimum-php-73] PHP 7.3+ required, so make sure your code is up to date with correct types!
20
+
### Added
21
+
- Bot API 5.0 (Big update!). (#1147)
22
+
### Changed
23
+
- Upgrade code to PHP 7.3. (#1136, #1158)
24
+
- Speed up `/clean` query. (@dva-re) (#1139)
25
+
- Various code prettifications. (@akalongman) (#1140, #1141, #1142, #1143)
26
+
### Security
27
+
- Minimum PHP 7.3, allow PHP 8.0. (#1136, #1158)
20
28
21
29
## [0.64.0] - 2020-10-04
22
30
### Notes
@@ -341,7 +349,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
341
349
-[:ledger: View file changes][0.45.0] ∙ [:page_with_curl: DB migration script][0.45.0-sql-migration]
342
350
### Added
343
351
- Documents can be sent by providing its contents via Psr7 stream (as opposed to passing a file path).
344
-
- Allow setting a custom Guzzle HTTP Client for requests (#511).
352
+
- Allow setting a custom Guzzle HTTP Client for requests (#511, #536).
345
353
- First implementations towards Bots API 3.0.
346
354
### Changed
347
355
-[:exclamation:][0.45.0-bc-chats-params-array]`Request::sendToActiveChats` and `DB::selectChats` now accept parameters as an options array and allow selecting of channels.
@@ -471,6 +479,8 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
*sendAudio*, *sendDocument*, *sendAnimation*, *sendSticker*, *sendVideo*, *sendVoice* and *sendVideoNote* all work in the same way, just check the [API documentation](https://core.telegram.org/bots/api#sendphoto) for the exact usage.
379
-
See the [*ImageCommand.php*][ImageCommand.php] for a full example.
379
+
See the *[ImageCommand.php]* for a full example.
380
380
381
381
#### Send Chat Action
382
382
@@ -389,11 +389,11 @@ Request::sendChatAction([
389
389
390
390
#### getUserProfilePhoto
391
391
392
-
Retrieve the user photo, see [*WhoamiCommand.php*][WhoamiCommand.php] for a full example.
392
+
Retrieve the user photo. (see *[WhoamiCommand.php]* for a full example)
393
393
394
394
#### getFile and downloadFile
395
395
396
-
Get the file path and download it, see [*WhoamiCommand.php*][WhoamiCommand.php] for a full example.
396
+
Get the file path and download it. (see *[WhoamiCommand.php]* for a full example)
397
397
398
398
#### Send message to all active chats
399
399
@@ -418,6 +418,7 @@ You can also broadcast a message to users, from the private chat with your bot.
418
418
#### Filter Update
419
419
420
420
Update processing can be allowed or denied by defining a custom update filter.
421
+
421
422
Let's say we only want to allow messages from a user with ID 428, we can do the following before handling the request:
422
423
423
424
```php
@@ -438,7 +439,7 @@ The reason for denying an update can be defined with the `$reason` parameter. Th
438
439
439
440
### MySQL storage (Recommended)
440
441
441
-
If you want to save messages/users/chats for further usage in commands, create a new database (`utf8mb4_unicode_520_ci`), import *structure.sql* and enable MySQL support after object creation and BEFORE `handle()` method:
442
+
If you want to save messages/users/chats for further usage in commands, create a new database (`utf8mb4_unicode_520_ci`), import *[structure.sql]* and enable MySQL support BEFORE `handle()` method:
442
443
443
444
```php
444
445
$mysql_credentials = [
@@ -466,7 +467,7 @@ It is possible to provide the library with an external MySQL PDO connection.
0 commit comments