Skip to content

Commit

Permalink
Fix userID for telegram
Browse files Browse the repository at this point in the history
  • Loading branch information
he110 committed Dec 30, 2019
1 parent d71af5b commit 7b88dd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Telegram/MessengerEvents.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ 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"])
->setUserId($from['id'])
->setLanguageCode($from["language_code"]);
$request->setUser($user);
}
Expand Down

0 comments on commit 7b88dd2

Please sign in to comment.