From b099d7e0a28799c064fa875cba366a0baa5e8eea Mon Sep 17 00:00:00 2001 From: Oleg Koltsov Date: Sat, 6 Jan 2024 18:46:00 +0600 Subject: [PATCH] feat: Added google_place_id and google_place_type parameters to sendVenue method --- src/BotApi.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/BotApi.php b/src/BotApi.php index 1e2c3237..035a81b5 100644 --- a/src/BotApi.php +++ b/src/BotApi.php @@ -782,6 +782,8 @@ public function stopMessageLiveLocation( * @param int|null $messageThreadId * @param bool|null $protectContent * @param bool|null $allowSendingWithoutReply + * @param string|null $googlePlaceId + * @param string|null $googlePlaceType * * @return Message * @throws Exception @@ -798,7 +800,9 @@ public function sendVenue( $disableNotification = false, $messageThreadId = null, $protectContent = null, - $allowSendingWithoutReply = null + $allowSendingWithoutReply = null, + $googlePlaceId = null, + $googlePlaceType = null ) { return Message::fromResponse($this->call('sendVenue', [ 'chat_id' => $chatId, @@ -807,6 +811,8 @@ public function sendVenue( 'title' => $title, 'address' => $address, 'foursquare_id' => $foursquareId, + 'google_place_id' => $googlePlaceId, + 'google_place_type' => $googlePlaceType, 'message_thread_id' => $messageThreadId, 'reply_to_message_id' => $replyToMessageId, 'reply_markup' => is_null($replyMarkup) ? $replyMarkup : $replyMarkup->toJson(),