Skip to content

Commit 635d06b

Browse files
committed
BC fixes from v2
1 parent e1149d8 commit 635d06b

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
[![Code Coverage](https://scrutinizer-ci.com/g/unreal4u/telegram-api/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/unreal4u/telegram-api/?branch=master)
1010
[![License](https://poser.pugx.org/unreal4u/telegram-api/license)](https://packagist.org/packages/unreal4u/telegram-api)
1111

12-
This is a PHP7 bot API implementation for Telegram implementing the **totality** of [Bot API up until v4.0](https://core.telegram.org/bots/api-changelog#july-26-2018)
12+
This is a PHP7 bot API implementation for Telegram implementing the **totality** of [Bot API up until v3.6](https://core.telegram.org/bots/api#february-13-2018)
13+
and the vast mejority of the [Bot API up until v4.1](https://core.telegram.org/bots/api#august-27-2018)
1314

1415
### About this class
1516

@@ -23,7 +24,9 @@ This is a PHP7 bot API implementation for Telegram implementing the **totality**
2324

2425
[![Telegram](http://trellobot.doomdns.org/telegrambadge.svg)](https://t.me/PHPBotAPI)
2526

26-
All known bugs can be found in the form of issues or pull requests. Found a new bug? Feel free to [submit a PR](https://github.com/unreal4u/telegram-api/pulls) or
27+
The only thing that is not included in this library (yet) is the Passport support. This will be implemented soon though!
28+
29+
All other known bugs can be found in the form of issues or pull requests. Found a new bug? Feel free to [submit a PR](https://github.com/unreal4u/telegram-api/pulls) or
2730
[create an issue](https://github.com/unreal4u/telegram-api/issues)! Not sure if you've found a new bug? You can always ask
2831
in the [special group](https://t.me/PHPBotAPI) :)
2932

src/Telegram/Methods/EditMessageMedia.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
use unreal4u\TelegramAPI\Abstracts\TelegramMethods;
99
use unreal4u\TelegramAPI\Abstracts\TelegramTypes;
1010
use unreal4u\TelegramAPI\Exceptions\InvalidResultType;
11-
use unreal4u\TelegramAPI\InternalFunctionality\TelegramRawData;
11+
use unreal4u\TelegramAPI\InternalFunctionality\TelegramResponse;
1212
use unreal4u\TelegramAPI\Telegram\Types\Custom\ResultBoolean;
1313
use unreal4u\TelegramAPI\Telegram\Types\Inline\Keyboard\Markup;
1414
use unreal4u\TelegramAPI\Telegram\Types\InputMedia;
@@ -70,7 +70,7 @@ public function getMandatoryFields(): array
7070
* @return TelegramTypes
7171
* @throws InvalidResultType
7272
*/
73-
public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes
73+
public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes
7474
{
7575
$typeOfResult = $data->getTypeOfResult();
7676
switch ($typeOfResult) {

src/Telegram/Methods/SetPassportDataErrors.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use Psr\Log\LoggerInterface;
88
use unreal4u\TelegramAPI\Abstracts\TelegramMethods;
99
use unreal4u\TelegramAPI\Abstracts\TelegramTypes;
10-
use unreal4u\TelegramAPI\InternalFunctionality\TelegramRawData;
10+
use unreal4u\TelegramAPI\InternalFunctionality\TelegramResponse;
1111
use unreal4u\TelegramAPI\Telegram\Types\Custom\ResultBoolean;
1212
use unreal4u\TelegramAPI\Telegram\Types\Passport\PassportElementError;
1313

@@ -36,7 +36,7 @@ class SetPassportDataErrors extends TelegramMethods
3636
*/
3737
public $errors = [];
3838

39-
public static function bindToObject(TelegramRawData $data, LoggerInterface $logger): TelegramTypes
39+
public static function bindToObject(TelegramResponse $data, LoggerInterface $logger): TelegramTypes
4040
{
4141
return new ResultBoolean($data->getResultBoolean(), $logger);
4242
}

0 commit comments

Comments
 (0)