Completed
Push — master ( 4cce15...b6779c )
by Irfaq
03:32
created
src/Api.php 2 patches
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
      * @var bool       $params ['disable_web_page_preview']
806 806
      * @var string     $params ['reply_markup']
807 807
      *
808
-     * @return TelegramResponse
808
+     * @return Message
809 809
      */
810 810
     public function editMessageText(array $params)
811 811
     {
@@ -837,7 +837,7 @@  discard block
 block discarded – undo
837 837
      * @var string     $params ['caption']
838 838
      * @var string     $params ['reply_markup']
839 839
      *
840
-     * @return TelegramResponse
840
+     * @return Message
841 841
      */
842 842
     public function editMessageCaption(array $params)
843 843
     {
@@ -867,7 +867,7 @@  discard block
 block discarded – undo
867 867
      * @var string     $params ['inline_message_id']
868 868
      * @var string     $params ['reply_markup']
869 869
      *
870
-     * @return TelegramResponse
870
+     * @return Message
871 871
      */
872 872
     public function editMessageReplyMarkup(array $params)
873 873
     {
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
      *
897 897
      * @throws TelegramSDKException
898 898
      *
899
-     * @return TelegramResponse
899
+     * @return Message
900 900
      */
901 901
     public function setWebhook(array $params)
902 902
     {
@@ -998,7 +998,7 @@  discard block
 block discarded – undo
998 998
      * @var bool    $params ['one_time_keyboard']
999 999
      * @var bool    $params ['selective']
1000 1000
      *
1001
-     * @return string
1001
+     * @return Keyboard
1002 1002
      */
1003 1003
     public function replyKeyboardMarkup(array $params)
1004 1004
     {
@@ -1132,7 +1132,7 @@  discard block
 block discarded – undo
1132 1132
     /**
1133 1133
      * Detect Message Type Based on Update or Message Object.
1134 1134
      *
1135
-     * @param Update|Message $object
1135
+     * @param Message $object
1136 1136
      *
1137 1137
      * @return string|null
1138 1138
      */
@@ -1227,7 +1227,7 @@  discard block
 block discarded – undo
1227 1227
      * Used primarily for file uploads.
1228 1228
      *
1229 1229
      * @param string $endpoint
1230
-     * @param array  $params
1230
+     * @param string  $params
1231 1231
      *
1232 1232
      * @throws TelegramSDKException
1233 1233
      *
@@ -1434,7 +1434,7 @@  discard block
 block discarded – undo
1434 1434
      * @var string|null $params ['switch_pm_text']
1435 1435
      * @var string|null $params ['switch_pm_parameter']
1436 1436
      *
1437
-     * @return bool
1437
+     * @return TelegramResponse
1438 1438
      */
1439 1439
     public function answerInlineQuery(array $params = [])
1440 1440
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,13 +8,13 @@
 block discarded – undo
8 8
 use Telegram\Bot\FileUpload\InputFile;
9 9
 use Telegram\Bot\HttpClients\GuzzleHttpClient;
10 10
 use Telegram\Bot\HttpClients\HttpClientInterface;
11
+use Telegram\Bot\Keyboard\Keyboard;
11 12
 use Telegram\Bot\Objects\File;
12 13
 use Telegram\Bot\Objects\Message;
13 14
 use Telegram\Bot\Objects\UnknownObject;
14 15
 use Telegram\Bot\Objects\Update;
15 16
 use Telegram\Bot\Objects\User;
16 17
 use Telegram\Bot\Objects\UserProfilePhotos;
17
-use Telegram\Bot\Keyboard\Keyboard;
18 18
 
19 19
 /**
20 20
  * Class Api.
Please login to merge, or discard this patch.