@@ -9,12 +9,10 @@ |
||
9 | 9 | use TelegramBotAPI\Types\File; |
10 | 10 | use TelegramBotAPI\Types\Update; |
11 | 11 | use TelegramBotAPI\Types\Message; |
12 | -use TelegramBotAPI\Types\InputFile; |
|
13 | 12 | use TelegramBotAPI\Types\StickerSet; |
14 | 13 | use TelegramBotAPI\Types\ForceReply; |
15 | 14 | use TelegramBotAPI\Types\ChatMember; |
16 | 15 | use TelegramBotAPI\Types\WebhookInfo; |
17 | -use TelegramBotAPI\Types\LabeledPrice; |
|
18 | 16 | use TelegramBotAPI\Types\GameHighScore; |
19 | 17 | use TelegramBotAPI\Types\UserProfilePhotos; |
20 | 18 | use TelegramBotAPI\Types\ReplyKeyboardRemove; |
@@ -139,6 +139,9 @@ discard block |
||
139 | 139 | return $data['result']; |
140 | 140 | } |
141 | 141 | |
142 | + /** |
|
143 | + * @param string $url |
|
144 | + */ |
|
142 | 145 | private function send($method, $url, $payload) { |
143 | 146 | |
144 | 147 | if ($method === TBAPrivateConst::POST) { |
@@ -1669,7 +1672,7 @@ discard block |
||
1669 | 1672 | * @api |
1670 | 1673 | * @link https://core.telegram.org/bots/api#getstickerset |
1671 | 1674 | * @param array $parameters |
1672 | - * @return string |
|
1675 | + * @return StickerSet |
|
1673 | 1676 | * |
1674 | 1677 | * @throws TelegramBotAPIException |
1675 | 1678 | * @throws TelegramBotAPIRuntimeException |
@@ -1695,7 +1698,7 @@ discard block |
||
1695 | 1698 | * @pai |
1696 | 1699 | * @link https://core.telegram.org/bots/api#promotechatmember |
1697 | 1700 | * @param array $parameters |
1698 | - * @return string |
|
1701 | + * @return File |
|
1699 | 1702 | * |
1700 | 1703 | * @throws TelegramBotAPIException |
1701 | 1704 | * @throws TelegramBotAPIRuntimeException |