| @@ 575-587 (lines=13) @@ | ||
| 572 | * Types\ReplyKeyboardRemove|null $replyMarkup |
|
| 573 | * @return \TelegramBot\Api\Types\Message |
|
| 574 | */ |
|
| 575 | public function stopMessageLiveLocation( |
|
| 576 | $chatId, |
|
| 577 | $messageId, |
|
| 578 | $inlineMessageId, |
|
| 579 | $replyMarkup = null |
|
| 580 | ) { |
|
| 581 | return Message::fromResponse($this->call('sendLocation', [ |
|
| 582 | 'chat_id' => $chatId, |
|
| 583 | 'message_id' => $messageId, |
|
| 584 | 'inline_message_id' => $inlineMessageId, |
|
| 585 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 586 | ])); |
|
| 587 | } |
|
| 588 | ||
| 589 | /** |
|
| 590 | * Use this method to send information about a venue. On success, the sent Message is returned. |
|
| @@ 1155-1167 (lines=13) @@ | ||
| 1152 | * |
|
| 1153 | * @return Message |
|
| 1154 | */ |
|
| 1155 | public function editMessageReplyMarkup( |
|
| 1156 | $chatId, |
|
| 1157 | $messageId, |
|
| 1158 | $replyMarkup = null, |
|
| 1159 | $inlineMessageId = null |
|
| 1160 | ) { |
|
| 1161 | return Message::fromResponse($this->call('editMessageReplyMarkup', [ |
|
| 1162 | 'chat_id' => $chatId, |
|
| 1163 | 'message_id' => $messageId, |
|
| 1164 | 'inline_message_id' => $inlineMessageId, |
|
| 1165 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 1166 | ])); |
|
| 1167 | } |
|
| 1168 | ||
| 1169 | /** |
|
| 1170 | * Use this method to delete a message, including service messages, with the following limitations: |
|
| @@ 1803-1813 (lines=11) @@ | ||
| 1800 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
| 1801 | * @throws \TelegramBot\Api\Exception |
|
| 1802 | */ |
|
| 1803 | public function stopPoll( |
|
| 1804 | $chatId, |
|
| 1805 | $messageId, |
|
| 1806 | $replyMarkup = null |
|
| 1807 | ) { |
|
| 1808 | return Poll::fromResponse($this->call('stopPoll', [ |
|
| 1809 | 'chat_id' => $chatId, |
|
| 1810 | 'message_id' => $messageId, |
|
| 1811 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 1812 | ])); |
|
| 1813 | } |
|
| 1814 | ||
| 1815 | /** |
|
| 1816 | * Set an option for a cURL transfer |
|