Skip to content

Commit 45ed1e8

Browse files
Llooplempociot
authored andcommitted
Be able to send venue information (#32)
1 parent 64f2891 commit 45ed1e8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: src/TelegramDriver.php

+3
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,9 @@ public function buildServicePayload($message, $matchingMessage, $additionalParam
339339
$this->endpoint = 'sendLocation';
340340
$parameters['latitude'] = $attachment->getLatitude();
341341
$parameters['longitude'] = $attachment->getLongitude();
342+
if (isset($parameters['title'], $parameters['address'])) {
343+
$this->endpoint = 'sendVenue';
344+
}
342345
}
343346
} else {
344347
$parameters['text'] = $message->getText();

0 commit comments

Comments
 (0)