Skip to content

Commit

Permalink
TelegramTypes: updated mapping ChatLocation in Chat
Browse files Browse the repository at this point in the history
  • Loading branch information
DJTommek committed Apr 19, 2023
1 parent 9816cd3 commit 56c2196
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Telegram/Types/Chat.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public function mapSubObjects(string $key, array $data): TelegramTypes
return new Message($data, $this->logger);
case 'permissions':
return new ChatPermissions($data, $this->logger);
case 'location':
return new ChatLocation($data, $this->logger);
}
return parent::mapSubObjects($key, $data);
}
Expand Down

0 comments on commit 56c2196

Please sign in to comment.