Completed
Push — master ( d35303...21e214 )
by Irfaq
02:49
created
src/Api.php 2 patches
Doc Comments   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -806,7 +806,7 @@  discard block
 block discarded – undo
806 806
      * @var bool       $params ['disable_web_page_preview']
807 807
      * @var string     $params ['reply_markup']
808 808
      *
809
-     * @return TelegramResponse
809
+     * @return Message
810 810
      */
811 811
     public function editMessageText(array $params)
812 812
     {
@@ -838,7 +838,7 @@  discard block
 block discarded – undo
838 838
      * @var string     $params ['caption']
839 839
      * @var string     $params ['reply_markup']
840 840
      *
841
-     * @return TelegramResponse
841
+     * @return Message
842 842
      */
843 843
     public function editMessageCaption(array $params)
844 844
     {
@@ -868,7 +868,7 @@  discard block
 block discarded – undo
868 868
      * @var string     $params ['inline_message_id']
869 869
      * @var string     $params ['reply_markup']
870 870
      *
871
-     * @return TelegramResponse
871
+     * @return Message
872 872
      */
873 873
     public function editMessageReplyMarkup(array $params)
874 874
     {
@@ -904,7 +904,7 @@  discard block
 block discarded – undo
904 904
      * @var string|null $params ['switch_pm_text']
905 905
      * @var string|null $params ['switch_pm_parameter']
906 906
      *
907
-     * @return bool
907
+     * @return TelegramResponse
908 908
      */
909 909
     public function answerInlineQuery(array $params = [])
910 910
     {
@@ -935,7 +935,7 @@  discard block
 block discarded – undo
935 935
      *
936 936
      * @throws TelegramSDKException
937 937
      *
938
-     * @return TelegramResponse
938
+     * @return Message
939 939
      */
940 940
     public function setWebhook(array $params)
941 941
     {
@@ -1038,7 +1038,7 @@  discard block
 block discarded – undo
1038 1038
      * @var bool    $params ['one_time_keyboard']
1039 1039
      * @var bool    $params ['selective']
1040 1040
      *
1041
-     * @return string
1041
+     * @return Keyboard
1042 1042
      */
1043 1043
     public function replyKeyboardMarkup(array $params)
1044 1044
     {
@@ -1065,7 +1065,7 @@  discard block
 block discarded – undo
1065 1065
      * @var bool    $params ['hide_keyboard']
1066 1066
      * @var bool    $params ['selective']
1067 1067
      *
1068
-     * @return string
1068
+     * @return Keyboard
1069 1069
      */
1070 1070
     public static function replyKeyboardHide(array $params = [])
1071 1071
     {
@@ -1092,7 +1092,7 @@  discard block
 block discarded – undo
1092 1092
      * @var bool    $params ['force_reply']
1093 1093
      * @var bool    $params ['selective']
1094 1094
      *
1095
-     * @return string
1095
+     * @return Keyboard
1096 1096
      */
1097 1097
     public static function forceReply(array $params = [])
1098 1098
     {
@@ -1185,7 +1185,7 @@  discard block
 block discarded – undo
1185 1185
     /**
1186 1186
      * Detect Message Type Based on Update or Message Object.
1187 1187
      *
1188
-     * @param Update|Message $object
1188
+     * @param Message $object
1189 1189
      *
1190 1190
      * @return string|null
1191 1191
      */
@@ -1281,7 +1281,7 @@  discard block
 block discarded – undo
1281 1281
      * Used primarily for file uploads.
1282 1282
      *
1283 1283
      * @param string $endpoint
1284
-     * @param array  $params
1284
+     * @param string  $params
1285 1285
      *
1286 1286
      * @throws TelegramSDKException
1287 1287
      *
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,15 +6,14 @@
 block discarded – undo
6 6
 use Telegram\Bot\Commands\CommandBus;
7 7
 use Telegram\Bot\Exceptions\TelegramSDKException;
8 8
 use Telegram\Bot\FileUpload\InputFile;
9
-use Telegram\Bot\HttpClients\GuzzleHttpClient;
10 9
 use Telegram\Bot\HttpClients\HttpClientInterface;
10
+use Telegram\Bot\Keyboard\Keyboard;
11 11
 use Telegram\Bot\Objects\File;
12 12
 use Telegram\Bot\Objects\Message;
13 13
 use Telegram\Bot\Objects\UnknownObject;
14 14
 use Telegram\Bot\Objects\Update;
15 15
 use Telegram\Bot\Objects\User;
16 16
 use Telegram\Bot\Objects\UserProfilePhotos;
17
-use Telegram\Bot\Keyboard\Keyboard;
18 17
 
19 18
 /**
20 19
  * Class Api.
Please login to merge, or discard this patch.