Skip to content

Commit 4565a9f

Browse files
authored
Merge pull request #352 from BoShurik/doc-types
Fix doc types
2 parents 797c120 + 95c80c8 commit 4565a9f

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

src/BotApi.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,7 +1132,7 @@ public function unbanChatMember($chatId, $userId)
11321132
* The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
11331133
*
11341134
* @param $callbackQueryId
1135-
* @param null $text
1135+
* @param string|null $text
11361136
* @param bool $showAlert
11371137
*
11381138
* @return bool
@@ -1257,8 +1257,8 @@ public function editMessageCaption(
12571257
* @param $chatId
12581258
* @param $messageId
12591259
* @param InputMedia $media
1260-
* @param null $inlineMessageId
1261-
* @param null $replyMarkup
1260+
* @param string|null $inlineMessageId
1261+
* @param string|null $replyMarkup
12621262
* @return bool|Message
12631263
* @throws Exception
12641264
* @throws HttpException
@@ -1902,14 +1902,14 @@ public function setProxy($proxyString = '', $socks5 = false)
19021902
* @param string $question Poll question, 1-255 characters
19031903
* @param array $options A JSON-serialized list of answer options, 2-10 strings 1-100 characters each
19041904
* @param bool $isAnonymous True, if the poll needs to be anonymous, defaults to True
1905-
* @param null $type Poll type, “quiz” or “regular”, defaults to “regular”
1905+
* @param string|null $type Poll type, “quiz” or “regular”, defaults to “regular”
19061906
* @param bool $allowsMultipleAnswers True, if the poll allows multiple answers,
19071907
* ignored for polls in quiz mode, defaults to False
1908-
* @param null $correctOptionId 0-based identifier of the correct answer option, required for polls in quiz mode
1908+
* @param string|null $correctOptionId 0-based identifier of the correct answer option, required for polls in quiz mode
19091909
* @param bool $isClosed Pass True, if the poll needs to be immediately closed. This can be useful for poll preview.
19101910
* @param bool $disableNotification Sends the message silently. Users will receive a notification with no sound.
19111911
* @param int|null $replyToMessageId If the message is a reply, ID of the original message
1912-
* @param null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
1912+
* @param object|null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
19131913
* custom reply keyboard, instructions to remove reply
19141914
* keyboard or to force a reply from the user.
19151915
* @return \TelegramBot\Api\Types\Message
@@ -1956,10 +1956,10 @@ public function sendPoll(
19561956
* “🎯”, “🏀”, “⚽”, or “🎰”. Dice can have values 1-6 for “🎲” and “🎯”, values 1-5 for “🏀” and “⚽”, and
19571957
* values 1-64 for “🎰”. Defaults to “🎲
19581958
* @param bool $disableNotification Sends the message silently. Users will receive a notification with no sound.
1959-
* @param null $replyToMessageId If the message is a reply, ID of the original message
1959+
* @param string|null $replyToMessageId If the message is a reply, ID of the original message
19601960
* @param bool $$allowSendingWithoutReply Pass True, if the message should be sent even if the specified replied-to
19611961
* message is not found,
1962-
* @param null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
1962+
* @param object|null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
19631963
* custom reply keyboard, instructions to remove reply
19641964
* keyboard or to force a reply from the user.
19651965
*

src/Types/InputMedia/InputMediaPhoto.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class InputMediaPhoto extends InputMedia
1414
* InputMediaPhoto constructor.
1515
*
1616
* @param string $media
17-
* @param null $caption
18-
* @param null $parseMode
17+
* @param string|null $caption
18+
* @param string|null $parseMode
1919
*/
2020
public function __construct($media, $caption = null, $parseMode = null)
2121
{

src/Types/InputMedia/InputMediaVideo.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ class InputMediaVideo extends InputMedia
5858
* InputMediaVideo constructor.
5959
*
6060
* @param string $media
61-
* @param null $caption
62-
* @param null $parseMode
63-
* @param null $width
64-
* @param null $height
65-
* @param null $duration
61+
* @param string|null $caption
62+
* @param string|null $parseMode
63+
* @param int|null $width
64+
* @param int|null $height
65+
* @param int|null $duration
6666
* @param bool $supportsStreaming
6767
*/
6868
public function __construct(

0 commit comments

Comments
 (0)