mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:34:44 +01:00
Avoid resolving integer IDs
This commit is contained in:
parent
6c5022ad83
commit
c0614ea2b6
@ -1 +1 @@
|
||||
Subproject commit 32214a5ad3aa7ffdf4cd7a1592b98990ca5a559b
|
||||
Subproject commit 453cf521d71f99f21f84fff96651c744b0f99a34
|
@ -168,6 +168,7 @@ trait PeerHandler
|
||||
*/
|
||||
public function getId(mixed $id): int
|
||||
{
|
||||
if (is_integer($id)) return $id;
|
||||
return $this->getInfo($id, \danog\MadelineProto\API::INFO_TYPE_ID);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user