diff --git a/src/TelegramDriver.php b/src/TelegramDriver.php index cee9eef..0745a6b 100644 --- a/src/TelegramDriver.php +++ b/src/TelegramDriver.php @@ -40,7 +40,12 @@ class TelegramDriver extends HttpDriver public function buildPayload(Request $request) { $this->payload = new ParameterBag((array) json_decode($request->getContent(), true)); - $this->event = Collection::make($this->payload->get('message')); + + $message = $this->payload->get('message'); + if (empty($message)) { + $message = $this->payload->get('edited_message'); + } + $this->event = Collection::make($message); $this->config = Collection::make($this->config->get('telegram')); $this->queryParameters = Collection::make($request->query); }