We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f0859b commit 50ade10Copy full SHA for 50ade10
1 file changed
src/TL/TL.php
@@ -1092,6 +1092,11 @@ public function deserialize($stream, array $type)
1092
$x['id'] = $x['id'] > Magic::MAX_CHANNEL_ID
1093
? DialogId::fromMonoforumId($x['id'])
1094
: 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
+ }
1100
} elseif ($x['_'] === 'chat'
1101
|| $x['_'] === 'chatForbidden'
1102
|| $x['_'] === 'chatFull'
0 commit comments