Bot API 6.2

This commit is contained in:
Sys 2022-08-12 16:46:33 +02:00
parent 91a5162c56
commit a94711cb06
No known key found for this signature in database
GPG Key ID: 3CD2C29F8AB39BFD
3 changed files with 65 additions and 55 deletions

View File

@ -8,17 +8,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [4.0.3] - 2022-08-12
### Added
- Support for bot API 6.2.0.
### Changed
- Updated dependencies to their latest available version.
## [4.0.2] - 2022-06-21
### Added
- Support for bot API 6.1.0
- Support for bot API 6.1.0.
## [4.0.1] - 2022-04-16
### Added
- Support for bot API 6.0.0
- Support for bot API 6.0.0.
## [4.0.0] - 2022-04-15
### Added
- Support for bot API 5.6.0 and 5.7.0
- Support for bot API 5.6.0 and 5.7.0.
- New `app:dump-schemas` command, used to generate schemas for all bot API versions.
- New `default` property for fields, it contains their default values when they're unspecified.
@ -173,7 +180,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- The parser is now more reliable, it no longer needs to be updated at every bot API release!
[Unreleased]: https://github.com/Sysbot-org/tgscraper/compare/4.0.2...HEAD
[Unreleased]: https://github.com/Sysbot-org/tgscraper/compare/4.0.3...HEAD
[4.0.3]: https://github.com/Sysbot-org/tgscraper/compare/4.0.2...4.0.3
[4.0.2]: https://github.com/Sysbot-org/tgscraper/compare/4.0.1...4.0.2
[4.0.1]: https://github.com/Sysbot-org/tgscraper/compare/4.0...4.0.1
[4.0.0]: https://github.com/Sysbot-org/tgscraper/compare/3.0.3...4.0

100
composer.lock generated
View File

@ -331,16 +331,16 @@
},
{
"name": "nette/php-generator",
"version": "v4.0.1",
"version": "v4.0.2",
"source": {
"type": "git",
"url": "https://github.com/nette/php-generator.git",
"reference": "23110ddbcdc7723f5ae06e94a535bbd01b72bfdc"
"reference": "f19b7975c7c4d729be5b64fce7eb72f0d4aac6fc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/nette/php-generator/zipball/23110ddbcdc7723f5ae06e94a535bbd01b72bfdc",
"reference": "23110ddbcdc7723f5ae06e94a535bbd01b72bfdc",
"url": "https://api.github.com/repos/nette/php-generator/zipball/f19b7975c7c4d729be5b64fce7eb72f0d4aac6fc",
"reference": "f19b7975c7c4d729be5b64fce7eb72f0d4aac6fc",
"shasum": ""
},
"require": {
@ -393,9 +393,9 @@
],
"support": {
"issues": "https://github.com/nette/php-generator/issues",
"source": "https://github.com/nette/php-generator/tree/v4.0.1"
"source": "https://github.com/nette/php-generator/tree/v4.0.2"
},
"time": "2022-03-10T02:24:09+00:00"
"time": "2022-06-17T12:20:08+00:00"
},
{
"name": "nette/utils",
@ -791,16 +791,16 @@
},
{
"name": "symfony/console",
"version": "v6.1.1",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
"reference": "6187424023fbffcd757789aeb517c9161b1eabee"
"reference": "43fcb5c5966b43c56bcfa481368d90d748936ab8"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/console/zipball/6187424023fbffcd757789aeb517c9161b1eabee",
"reference": "6187424023fbffcd757789aeb517c9161b1eabee",
"url": "https://api.github.com/repos/symfony/console/zipball/43fcb5c5966b43c56bcfa481368d90d748936ab8",
"reference": "43fcb5c5966b43c56bcfa481368d90d748936ab8",
"shasum": ""
},
"require": {
@ -867,7 +867,7 @@
"terminal"
],
"support": {
"source": "https://github.com/symfony/console/tree/v6.1.1"
"source": "https://github.com/symfony/console/tree/v6.1.3"
},
"funding": [
{
@ -883,20 +883,20 @@
"type": "tidelift"
}
],
"time": "2022-06-08T14:02:09+00:00"
"time": "2022-07-22T14:17:57+00:00"
},
{
"name": "symfony/css-selector",
"version": "v6.1.0",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/css-selector.git",
"reference": "05c40f02f621609404b8820ff8bc39acb46e19cf"
"reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/05c40f02f621609404b8820ff8bc39acb46e19cf",
"reference": "05c40f02f621609404b8820ff8bc39acb46e19cf",
"url": "https://api.github.com/repos/symfony/css-selector/zipball/0dd5e36b80e1de97f8f74ed7023ac2b837a36443",
"reference": "0dd5e36b80e1de97f8f74ed7023ac2b837a36443",
"shasum": ""
},
"require": {
@ -932,7 +932,7 @@
"description": "Converts CSS selectors to XPath expressions",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/css-selector/tree/v6.1.0"
"source": "https://github.com/symfony/css-selector/tree/v6.1.3"
},
"funding": [
{
@ -948,11 +948,11 @@
"type": "tidelift"
}
],
"time": "2022-02-25T11:15:52+00:00"
"time": "2022-06-27T17:24:16+00:00"
},
{
"name": "symfony/deprecation-contracts",
"version": "v3.1.0",
"version": "v3.1.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/deprecation-contracts.git",
@ -999,7 +999,7 @@
"description": "A generic function and convention to trigger deprecation notices",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.0"
"source": "https://github.com/symfony/deprecation-contracts/tree/v3.1.1"
},
"funding": [
{
@ -1349,16 +1349,16 @@
},
{
"name": "symfony/service-contracts",
"version": "v3.1.0",
"version": "v3.1.1",
"source": {
"type": "git",
"url": "https://github.com/symfony/service-contracts.git",
"reference": "d66cd8ab656780f62c4215b903a420eb86358957"
"reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/d66cd8ab656780f62c4215b903a420eb86358957",
"reference": "d66cd8ab656780f62c4215b903a420eb86358957",
"url": "https://api.github.com/repos/symfony/service-contracts/zipball/925e713fe8fcacf6bc05e936edd8dd5441a21239",
"reference": "925e713fe8fcacf6bc05e936edd8dd5441a21239",
"shasum": ""
},
"require": {
@ -1414,7 +1414,7 @@
"standards"
],
"support": {
"source": "https://github.com/symfony/service-contracts/tree/v3.1.0"
"source": "https://github.com/symfony/service-contracts/tree/v3.1.1"
},
"funding": [
{
@ -1430,20 +1430,20 @@
"type": "tidelift"
}
],
"time": "2022-05-07T08:07:09+00:00"
"time": "2022-05-30T19:18:58+00:00"
},
{
"name": "symfony/string",
"version": "v6.1.0",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/string.git",
"reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529"
"reference": "f35241f45c30bcd9046af2bb200a7086f70e1d6b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/string/zipball/d3edc75baf9f1d4f94879764dda2e1ac33499529",
"reference": "d3edc75baf9f1d4f94879764dda2e1ac33499529",
"url": "https://api.github.com/repos/symfony/string/zipball/f35241f45c30bcd9046af2bb200a7086f70e1d6b",
"reference": "f35241f45c30bcd9046af2bb200a7086f70e1d6b",
"shasum": ""
},
"require": {
@ -1499,7 +1499,7 @@
"utf8"
],
"support": {
"source": "https://github.com/symfony/string/tree/v6.1.0"
"source": "https://github.com/symfony/string/tree/v6.1.3"
},
"funding": [
{
@ -1515,20 +1515,20 @@
"type": "tidelift"
}
],
"time": "2022-04-22T08:18:23+00:00"
"time": "2022-07-27T15:50:51+00:00"
},
{
"name": "symfony/yaml",
"version": "v6.1.0",
"version": "v6.1.3",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2"
"reference": "cc48dd42ae1201abced04ae38284e23ce2d2d8f3"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/84ce4f9d2d68f306f971a39d949d8f4b5550dba2",
"reference": "84ce4f9d2d68f306f971a39d949d8f4b5550dba2",
"url": "https://api.github.com/repos/symfony/yaml/zipball/cc48dd42ae1201abced04ae38284e23ce2d2d8f3",
"reference": "cc48dd42ae1201abced04ae38284e23ce2d2d8f3",
"shasum": ""
},
"require": {
@ -1573,7 +1573,7 @@
"description": "Loads and dumps YAML files",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/yaml/tree/v6.1.0"
"source": "https://github.com/symfony/yaml/tree/v6.1.3"
},
"funding": [
{
@ -1589,7 +1589,7 @@
"type": "tidelift"
}
],
"time": "2022-04-15T14:25:02+00:00"
"time": "2022-07-20T14:45:06+00:00"
},
{
"name": "voku/simple_html_dom",
@ -2898,16 +2898,16 @@
},
{
"name": "phpstan/phpstan",
"version": "1.7.15",
"version": "1.8.2",
"source": {
"type": "git",
"url": "https://github.com/phpstan/phpstan.git",
"reference": "cd0202ea1b1fc6d1bbe156c6e2e18a03e0ff160a"
"reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/cd0202ea1b1fc6d1bbe156c6e2e18a03e0ff160a",
"reference": "cd0202ea1b1fc6d1bbe156c6e2e18a03e0ff160a",
"url": "https://api.github.com/repos/phpstan/phpstan/zipball/c53312ecc575caf07b0e90dee43883fdf90ca67c",
"reference": "c53312ecc575caf07b0e90dee43883fdf90ca67c",
"shasum": ""
},
"require": {
@ -2933,7 +2933,7 @@
"description": "PHPStan - PHP Static Analysis Tool",
"support": {
"issues": "https://github.com/phpstan/phpstan/issues",
"source": "https://github.com/phpstan/phpstan/tree/1.7.15"
"source": "https://github.com/phpstan/phpstan/tree/1.8.2"
},
"funding": [
{
@ -2953,7 +2953,7 @@
"type": "tidelift"
}
],
"time": "2022-06-20T08:29:01+00:00"
"time": "2022-07-20T09:57:31+00:00"
},
{
"name": "phpunit/php-code-coverage",
@ -4474,16 +4474,16 @@
},
{
"name": "vimeo/psalm",
"version": "4.23.0",
"version": "4.26.0",
"source": {
"type": "git",
"url": "https://github.com/vimeo/psalm.git",
"reference": "f1fe6ff483bf325c803df9f510d09a03fd796f88"
"reference": "6998fabb2bf528b65777bf9941920888d23c03ac"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/vimeo/psalm/zipball/f1fe6ff483bf325c803df9f510d09a03fd796f88",
"reference": "f1fe6ff483bf325c803df9f510d09a03fd796f88",
"url": "https://api.github.com/repos/vimeo/psalm/zipball/6998fabb2bf528b65777bf9941920888d23c03ac",
"reference": "6998fabb2bf528b65777bf9941920888d23c03ac",
"shasum": ""
},
"require": {
@ -4575,9 +4575,9 @@
],
"support": {
"issues": "https://github.com/vimeo/psalm/issues",
"source": "https://github.com/vimeo/psalm/tree/4.23.0"
"source": "https://github.com/vimeo/psalm/tree/4.26.0"
},
"time": "2022-04-28T17:35:49+00:00"
"time": "2022-07-31T13:10:26+00:00"
},
{
"name": "webmozart/assert",

View File

@ -44,8 +44,9 @@ class Versions
public const V570 = '5.7.0';
public const V600 = '6.0.0';
public const V610 = '6.1.0';
public const V620 = '6.2.0';
public const LATEST = 'latest';
public const STABLE = self::V610;
public const STABLE = self::V620;
public const URLS = [
self::V100 => 'https://web.archive.org/web/20150714025308id_/https://core.telegram.org/bots/api/',
@ -88,6 +89,7 @@ class Versions
self::V570 => 'https://web.archive.org/web/20220206103922id_/https://core.telegram.org/bots/api',
self::V600 => 'https://web.archive.org/web/20220416143511id_/https://core.telegram.org/bots/api',
self::V610 => 'https://web.archive.org/web/20220621093855id_/https://core.telegram.org/bots/api',
self::V620 => 'https://web.archive.org/web/20220812143250id_/https://core.telegram.org/bots/api',
self::LATEST => 'https://core.telegram.org/bots/api'
];