diff --git a/src/TelegramDriver.php b/src/TelegramDriver.php index 4123828..cee9eef 100644 --- a/src/TelegramDriver.php +++ b/src/TelegramDriver.php @@ -339,6 +339,9 @@ public function buildServicePayload($message, $matchingMessage, $additionalParam $this->endpoint = 'sendLocation'; $parameters['latitude'] = $attachment->getLatitude(); $parameters['longitude'] = $attachment->getLongitude(); + if (isset($parameters['title'], $parameters['address'])) { + $this->endpoint = 'sendVenue'; + } } } else { $parameters['text'] = $message->getText();