1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 10:38:59 +01:00

Fix translate method bug!

This commit is contained in:
Mahdi 2023-08-06 02:50:14 +03:30
parent 6e9b4be259
commit b64c649f2b

View File

@ -277,11 +277,11 @@ abstract class Message extends AbstractMessage
[
'peer' => $this->chatId,
'id' => [$this->id],
'text' => $this->message,
'text' => [['_' => 'textWithEntities', 'text' => $this->message]],
'to_lang' => $toLang
]
);
return $result[0]['text'];
return $result['result'][0]['text'];
}
/**