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) {
|
return Tools::call((function () use ($offset, $value) {
|
||||||
$result = yield $this;
|
$result = yield $this;
|
||||||
|
if ($offset === null) {
|
||||||
|
return $result[] = $value;
|
||||||
|
}
|
||||||
return $result[$offset] = $value;
|
return $result[$offset] = $value;
|
||||||
})());
|
})());
|
||||||
}
|
}
|
||||||
|
|
|
@ -358,6 +358,7 @@ trait PeerHandler
|
||||||
switch ($id['_']) {
|
switch ($id['_']) {
|
||||||
case 'updateEncryption':
|
case 'updateEncryption':
|
||||||
return $this->get_secret_chat($id['chat']['id']);
|
return $this->get_secret_chat($id['chat']['id']);
|
||||||
|
case 'inputEncryptedChat':
|
||||||
case 'updateEncryptedChatTyping':
|
case 'updateEncryptedChatTyping':
|
||||||
case 'updateEncryptedMessagesRead':
|
case 'updateEncryptedMessagesRead':
|
||||||
return $this->get_secret_chat($id['chat_id']);
|
return $this->get_secret_chat($id['chat_id']);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user