1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-22 21:51:34 +01:00

tdlib conversion logic bugfix

This commit is contained in:
Daniil Gentili 2023-12-13 21:23:00 +01:00
parent 86401b19e8
commit 85bf695e10

View File

@ -133,8 +133,8 @@ trait TD
case 'choose_forward_info':
if (isset($params['fwd_from'])) {
$newparams[$td] = ['_' => 'messageForwardedFromUser'];
if (DialogId::isSupergroupOrChannel($params['fwd_from']['channel_id'])) {
$newparams[$td] = ['_' => 'messageForwardedPost', 'chat_id' => $params['fwd_from']['channel_id']];
if (DialogId::isSupergroupOrChannel($params['fwd_from'])) {
$newparams[$td] = ['_' => 'messageForwardedPost', 'chat_id' => $params['fwd_from']];
}
$newparams[$td]['date'] = $params['fwd_from']['date'];
if (isset($params['fwd_from']['channel_post'])) {