| @@ 945-957 (lines=13) @@ | ||
| 942 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
| 943 | * @throws \TelegramBot\Api\Exception |
|
| 944 | */ |
|
| 945 | public function editMessageCaption( |
|
| 946 | $chatId, |
|
| 947 | $messageId, |
|
| 948 | $caption = null, |
|
| 949 | $replyMarkup = null |
|
| 950 | ) { |
|
| 951 | return Message::fromResponse($this->call('editMessageText', [ |
|
| 952 | 'chat_id' => $chatId, |
|
| 953 | 'message_id' => $messageId, |
|
| 954 | 'caption' => $caption, |
|
| 955 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 956 | ])); |
|
| 957 | } |
|
| 958 | ||
| 959 | /** |
|
| 960 | * Use this method to edit only the reply markup of messages sent by the bot or via the bot |
|
| @@ 970-980 (lines=11) @@ | ||
| 967 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
| 968 | * @throws \TelegramBot\Api\Exception |
|
| 969 | */ |
|
| 970 | public function editMessageReplyMarkup( |
|
| 971 | $chatId, |
|
| 972 | $messageId, |
|
| 973 | $replyMarkup = null |
|
| 974 | ) { |
|
| 975 | return Message::fromResponse($this->call('editMessageText', [ |
|
| 976 | 'chat_id' => $chatId, |
|
| 977 | 'message_id' => $messageId, |
|
| 978 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 979 | ])); |
|
| 980 | } |
|
| 981 | ||
| 982 | /** |
|
| 983 | * Close curl |
|