mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 11:34:41 +01:00
Convert inputEncryptedChat
This commit is contained in:
parent
2c2e33636f
commit
9321f3d0af
@ -196,6 +196,9 @@ final class Coroutine implements Promise, \ArrayAccess
|
||||
{
|
||||
return Tools::call((function () use ($offset, $value) {
|
||||
$result = yield $this;
|
||||
if ($offset === null) {
|
||||
return $result[] = $value;
|
||||
}
|
||||
return $result[$offset] = $value;
|
||||
})());
|
||||
}
|
||||
|
@ -358,6 +358,7 @@ trait PeerHandler
|
||||
switch ($id['_']) {
|
||||
case 'updateEncryption':
|
||||
return $this->get_secret_chat($id['chat']['id']);
|
||||
case 'inputEncryptedChat':
|
||||
case 'updateEncryptedChatTyping':
|
||||
case 'updateEncryptedMessagesRead':
|
||||
return $this->get_secret_chat($id['chat_id']);
|
||||
|
Loading…
Reference in New Issue
Block a user