@@ -150,6 +150,9 @@ discard block |
||
150 | 150 | return $data['result']; |
151 | 151 | } |
152 | 152 | |
153 | + /** |
|
154 | + * @param string $url |
|
155 | + */ |
|
153 | 156 | private function send($method, $url, $payload) { |
154 | 157 | |
155 | 158 | if ($method === TBAPrivateConst::POST) { |
@@ -1317,7 +1320,7 @@ discard block |
||
1317 | 1320 | * @api |
1318 | 1321 | * @link https://core.telegram.org/bots/api#deleteMessage |
1319 | 1322 | * @param array $parameters |
1320 | - * @return bool |
|
1323 | + * @return string |
|
1321 | 1324 | * |
1322 | 1325 | * @throws TelegramBotAPIException |
1323 | 1326 | * @throws TelegramBotAPIRuntimeException |
@@ -1350,7 +1353,7 @@ discard block |
||
1350 | 1353 | * @api |
1351 | 1354 | * @link https://core.telegram.org/bots/api#answerinlinequery |
1352 | 1355 | * @param array $parameters |
1353 | - * @return bool |
|
1356 | + * @return string |
|
1354 | 1357 | * |
1355 | 1358 | * @throws TelegramBotAPIException |
1356 | 1359 | * @throws TelegramBotAPIRuntimeException |
@@ -1415,7 +1418,7 @@ discard block |
||
1415 | 1418 | * @api |
1416 | 1419 | * @link https://core.telegram.org/bots/api#answershippingquery |
1417 | 1420 | * @param array $parameters |
1418 | - * @return bool |
|
1421 | + * @return string |
|
1419 | 1422 | * |
1420 | 1423 | * @throws TelegramBotAPIException |
1421 | 1424 | * @throws TelegramBotAPIRuntimeException |
@@ -1455,7 +1458,7 @@ discard block |
||
1455 | 1458 | * @api |
1456 | 1459 | * @link https://core.telegram.org/bots/api#answerprecheckoutquery |
1457 | 1460 | * @param array $parameters |
1458 | - * @return bool |
|
1461 | + * @return string |
|
1459 | 1462 | * |
1460 | 1463 | * @throws TelegramBotAPIException |
1461 | 1464 | * @throws TelegramBotAPIRuntimeException |
@@ -1978,7 +1981,7 @@ discard block |
||
1978 | 1981 | * @api |
1979 | 1982 | * @link https://core.telegram.org/bots/api#getstickerset |
1980 | 1983 | * @param array $parameters |
1981 | - * @return string |
|
1984 | + * @return StickerSet |
|
1982 | 1985 | * |
1983 | 1986 | * @throws TelegramBotAPIException |
1984 | 1987 | * @throws TelegramBotAPIRuntimeException |
@@ -2006,7 +2009,7 @@ discard block |
||
2006 | 2009 | * @pai |
2007 | 2010 | * @link https://core.telegram.org/bots/api#promotechatmember |
2008 | 2011 | * @param array $parameters |
2009 | - * @return string |
|
2012 | + * @return File |
|
2010 | 2013 | * |
2011 | 2014 | * @throws TelegramBotAPIException |
2012 | 2015 | * @throws TelegramBotAPIRuntimeException |