| @@ 562-574 (lines=13) @@ | ||
| 559 | * Types\ReplyKeyboardRemove|null $replyMarkup |
|
| 560 | * @return \TelegramBot\Api\Types\Message |
|
| 561 | */ |
|
| 562 | public function stopMessageLiveLocation( |
|
| 563 | $chatId, |
|
| 564 | $messageId, |
|
| 565 | $inlineMessageId, |
|
| 566 | $replyMarkup = null |
|
| 567 | ) { |
|
| 568 | return Message::fromResponse($this->call('sendLocation', [ |
|
| 569 | 'chat_id' => $chatId, |
|
| 570 | 'message_id' => $messageId, |
|
| 571 | 'inline_message_id' => $inlineMessageId, |
|
| 572 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 573 | ])); |
|
| 574 | } |
|
| 575 | ||
| 576 | /** |
|
| 577 | * Use this method to send information about a venue. On success, the sent Message is returned. |
|
| @@ 1142-1154 (lines=13) @@ | ||
| 1139 | * |
|
| 1140 | * @return Message |
|
| 1141 | */ |
|
| 1142 | public function editMessageReplyMarkup( |
|
| 1143 | $chatId, |
|
| 1144 | $messageId, |
|
| 1145 | $replyMarkup = null, |
|
| 1146 | $inlineMessageId = null |
|
| 1147 | ) { |
|
| 1148 | return Message::fromResponse($this->call('editMessageReplyMarkup', [ |
|
| 1149 | 'chat_id' => $chatId, |
|
| 1150 | 'message_id' => $messageId, |
|
| 1151 | 'inline_message_id' => $inlineMessageId, |
|
| 1152 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 1153 | ])); |
|
| 1154 | } |
|
| 1155 | ||
| 1156 | /** |
|
| 1157 | * Use this method to delete a message, including service messages, with the following limitations: |
|
| @@ 1790-1800 (lines=11) @@ | ||
| 1787 | * @throws \TelegramBot\Api\InvalidArgumentException |
|
| 1788 | * @throws \TelegramBot\Api\Exception |
|
| 1789 | */ |
|
| 1790 | public function stopPoll( |
|
| 1791 | $chatId, |
|
| 1792 | $messageId, |
|
| 1793 | $replyMarkup = null |
|
| 1794 | ) { |
|
| 1795 | return Poll::fromResponse($this->call('stopPoll', [ |
|
| 1796 | 'chat_id' => $chatId, |
|
| 1797 | 'message_id' => $messageId, |
|
| 1798 | 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(), |
|
| 1799 | ])); |
|
| 1800 | } |
|
| 1801 | ||
| 1802 | /** |
|
| 1803 | * Set an option for a cURL transfer |
|