Skip to content

Commit

Permalink
feat: Added google_place_id and google_place_type parameters to sendV…
Browse files Browse the repository at this point in the history
…enue method
  • Loading branch information
Oleg Koltsov committed Jan 6, 2024
1 parent fcc0241 commit b099d7e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/BotApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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,
Expand All @@ -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(),
Expand Down

0 comments on commit b099d7e

Please sign in to comment.