Skip to content

Commit

Permalink
Fix chat ID for telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
he110 committed Dec 30, 2019
1 parent 7b88dd2 commit 99645ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Telegram/MessengerEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public function getRequest(): Request
*/
private function buildMessageRequest(Request &$request, array $data): Request
{
$data['from']['id'] = $data['chat']['id'];
$this->setUserFromRequest($request, $data["from"]);

if (isset($data["text"])) {
Expand Down Expand Up @@ -151,7 +152,6 @@ private function detectPayloadType(string $payload, &$data = null): ?string
private function setUserFromRequest(Request &$request, array $from): void
{
$user = new MessengerUser();
var_dump($from);
$user->setFirstName($from["first_name"])
->setLastName($from["last_name"])
->setUsername($from["username"])
Expand Down

0 comments on commit 99645ff

Please sign in to comment.