mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 14:34:39 +01:00
Bugfixes
This commit is contained in:
parent
60a9d7e5f5
commit
7f7bb01e64
@ -195,7 +195,7 @@ trait PeerHandler
|
||||
return $this->gen_all($this->chats[$id]);
|
||||
}
|
||||
if ($id < 0 && !preg_match('/^-100/', $id)) {
|
||||
$this->method_call('messages.getFullChat', ['chat_id' => $id]);
|
||||
$this->method_call('messages.getFullChat', ['chat_id' => -$id]);
|
||||
if (isset($this->chats[$id])) {
|
||||
return $this->gen_all($this->chats[$id]);
|
||||
}
|
||||
|
@ -173,6 +173,7 @@ trait TL
|
||||
|
||||
}
|
||||
$auto = false;
|
||||
|
||||
if (!is_array($object) && in_array($type['type'], ['User', 'InputUser', 'Chat', 'InputChannel', 'Peer', 'InputPeer'])) {
|
||||
$object = $this->get_info($object)[$type['type']];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user