Skip to content

Commit

Permalink
Be able to send venue information (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lloople authored and mpociot committed Mar 15, 2018
1 parent 64f2891 commit 45ed1e8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/TelegramDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 45ed1e8

Please sign in to comment.