Skip to content

Commit

Permalink
Merge pull request #88 from gnurlan/patch-1
Browse files Browse the repository at this point in the history
empty contact last_name issue fixed
  • Loading branch information
crynobone authored Sep 24, 2020
2 parents 85bfb40 + e226215 commit 102cd6d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/TelegramContactDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ public function loadMessages()
{
$message = new IncomingMessage(Contact::PATTERN, $this->event->get('from')['id'], $this->event->get('chat')['id'], $this->event);
$message->setContact(new Contact(
$this->event->get('contact')['phone_number'],
$this->event->get('contact')['first_name'],
$this->event->get('contact')['last_name'],
$this->event->get('contact')['phone_number']??"",
$this->event->get('contact')['first_name']??"",
$this->event->get('contact')['last_name']??"",
$this->event->get('contact')['user_id'],
$this->event->get('contact')['vcard']
$this->event->get('contact')['vcard']??""
));

$this->messages = [$message];
Expand Down

0 comments on commit 102cd6d

Please sign in to comment.