Skip to content

Commit 91bd858

Browse files
author
camilo.sperberg
committed
Return correct object on update
1 parent ab28d18 commit 91bd858

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Telegram/Types/Inline/Keyboard/Button.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ class Button extends TelegramTypes
8888
protected function mapSubObjects(string $key, array $data): TelegramTypes
8989
{
9090
switch ($key) {
91+
case 'login_url':
92+
return new LoginUrl($data, $this->logger);
9193
case 'callback_game':
9294
return new CallbackGame($data, $this->logger);
9395
}

0 commit comments

Comments
 (0)