Skip to content

Commit 27834eb

Browse files
authored
Merge pull request #198 from flaksp/master
Add parse_mode parameter to editMessageCaption()
2 parents bd35f04 + d651286 commit 27834eb

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
@@ -1136,6 +1136,7 @@ public function editMessageText(
11361136
* @param Types\ReplyKeyboardMarkup|Types\ReplyKeyboardHide|Types\ForceReply|
11371137
* Types\ReplyKeyboardRemove|null $replyMarkup
11381138
* @param string $inlineMessageId
1139+
* @param string|null $parseMode
11391140
*
11401141
* @return \TelegramBot\Api\Types\Message
11411142
* @throws \TelegramBot\Api\InvalidArgumentException
@@ -1146,14 +1147,16 @@ public function editMessageCaption(
11461147
$messageId,
11471148
$caption = null,
11481149
$replyMarkup = null,
1149-
$inlineMessageId = null
1150+
$inlineMessageId = null,
1151+
$parseMode = null
11501152
) {
11511153
return Message::fromResponse($this->call('editMessageCaption', [
11521154
'chat_id' => $chatId,
11531155
'message_id' => $messageId,
11541156
'inline_message_id' => $inlineMessageId,
11551157
'caption' => $caption,
11561158
'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),
1159+
'parse_mode' => $parseMode
11571160
]));
11581161
}
11591162

0 commit comments

Comments
 (0)