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:
parent
6e9b4be259
commit
b64c649f2b
@ -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'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user