Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix doc types #352

Merged
merged 1 commit into from
Nov 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/BotApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ public function unbanChatMember($chatId, $userId)
* The answer will be displayed to the user as a notification at the top of the chat screen or as an alert.
*
* @param $callbackQueryId
* @param null $text
* @param string|null $text
* @param bool $showAlert
*
* @return bool
Expand Down Expand Up @@ -1257,8 +1257,8 @@ public function editMessageCaption(
* @param $chatId
* @param $messageId
* @param InputMedia $media
* @param null $inlineMessageId
* @param null $replyMarkup
* @param string|null $inlineMessageId
* @param string|null $replyMarkup
* @return bool|Message
* @throws Exception
* @throws HttpException
Expand Down Expand Up @@ -1902,14 +1902,14 @@ public function setProxy($proxyString = '', $socks5 = false)
* @param string $question Poll question, 1-255 characters
* @param array $options A JSON-serialized list of answer options, 2-10 strings 1-100 characters each
* @param bool $isAnonymous True, if the poll needs to be anonymous, defaults to True
* @param null $type Poll type, “quiz” or “regular”, defaults to “regular”
* @param string|null $type Poll type, “quiz” or “regular”, defaults to “regular”
* @param bool $allowsMultipleAnswers True, if the poll allows multiple answers,
* ignored for polls in quiz mode, defaults to False
* @param null $correctOptionId 0-based identifier of the correct answer option, required for polls in quiz mode
* @param string|null $correctOptionId 0-based identifier of the correct answer option, required for polls in quiz mode
* @param bool $isClosed Pass True, if the poll needs to be immediately closed. This can be useful for poll preview.
* @param bool $disableNotification Sends the message silently. Users will receive a notification with no sound.
* @param int|null $replyToMessageId If the message is a reply, ID of the original message
* @param null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
* @param object|null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
* custom reply keyboard, instructions to remove reply
* keyboard or to force a reply from the user.
* @return \TelegramBot\Api\Types\Message
Expand Down Expand Up @@ -1956,10 +1956,10 @@ public function sendPoll(
* “🎯”, “🏀”, “⚽”, or “🎰”. Dice can have values 1-6 for “🎲” and “🎯”, values 1-5 for “🏀” and “⚽”, and
* values 1-64 for “🎰”. Defaults to “🎲
* @param bool $disableNotification Sends the message silently. Users will receive a notification with no sound.
* @param null $replyToMessageId If the message is a reply, ID of the original message
* @param string|null $replyToMessageId If the message is a reply, ID of the original message
* @param bool $$allowSendingWithoutReply Pass True, if the message should be sent even if the specified replied-to
* message is not found,
* @param null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
* @param object|null $replyMarkup Additional interface options. A JSON-serialized object for an inline keyboard,
* custom reply keyboard, instructions to remove reply
* keyboard or to force a reply from the user.
*
Expand Down
4 changes: 2 additions & 2 deletions src/Types/InputMedia/InputMediaPhoto.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ class InputMediaPhoto extends InputMedia
* InputMediaPhoto constructor.
*
* @param string $media
* @param null $caption
* @param null $parseMode
* @param string|null $caption
* @param string|null $parseMode
*/
public function __construct($media, $caption = null, $parseMode = null)
{
Expand Down
10 changes: 5 additions & 5 deletions src/Types/InputMedia/InputMediaVideo.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ class InputMediaVideo extends InputMedia
* InputMediaVideo constructor.
*
* @param string $media
* @param null $caption
* @param null $parseMode
* @param null $width
* @param null $height
* @param null $duration
* @param string|null $caption
* @param string|null $parseMode
* @param int|null $width
* @param int|null $height
* @param int|null $duration
* @param bool $supportsStreaming
*/
public function __construct(
Expand Down