Skip to content

Commit d651286

Browse files
committed
Add parseMode parameter to editMessageCaption method
1 parent 8d34f3c commit d651286

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/BotApi.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,7 @@ public function editMessageText(
10651065
* @param Types\ReplyKeyboardMarkup|Types\ReplyKeyboardHide|Types\ForceReply|
10661066
* Types\ReplyKeyboardRemove|null $replyMarkup
10671067
* @param string $inlineMessageId
1068+
* @param string|null $parseMode
10681069
*
10691070
* @return \TelegramBot\Api\Types\Message
10701071
* @throws \TelegramBot\Api\InvalidArgumentException
@@ -1075,14 +1076,16 @@ public function editMessageCaption(
10751076
$messageId,
10761077
$caption = null,
10771078
$replyMarkup = null,
1078-
$inlineMessageId = null
1079+
$inlineMessageId = null,
1080+
$parseMode = null
10791081
) {
10801082
return Message::fromResponse($this->call('editMessageCaption', [
10811083
'chat_id' => $chatId,
10821084
'message_id' => $messageId,
10831085
'inline_message_id' => $inlineMessageId,
10841086
'caption' => $caption,
10851087
'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1088+
'parse_mode' => $parseMode
10861089
]));
10871090
}
10881091

0 commit comments

Comments
 (0)