Skip to content

Commit 50ade10

Browse files
committed
Transform the linked_monoforum_id
1 parent 6f0859b commit 50ade10

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/TL/TL.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,6 +1092,11 @@ public function deserialize($stream, array $type)
10921092
$x['id'] = $x['id'] > Magic::MAX_CHANNEL_ID
10931093
? DialogId::fromMonoforumId($x['id'])
10941094
: DialogId::fromSupergroupOrChannelId($x['id']);
1095+
if (isset($x['linked_monoforum_id'])) {
1096+
$x['linked_monoforum_id'] = $x['linked_monoforum_id'] > Magic::MAX_CHANNEL_ID
1097+
? DialogId::fromMonoforumId($x['linked_monoforum_id'])
1098+
: DialogId::fromSupergroupOrChannelId($x['linked_monoforum_id']);
1099+
}
10951100
} elseif ($x['_'] === 'chat'
10961101
|| $x['_'] === 'chatForbidden'
10971102
|| $x['_'] === 'chatFull'

0 commit comments

Comments
 (0)