1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 01:34:40 +01:00

Avoid resolving integer IDs

This commit is contained in:
Daniil Gentili 2023-09-12 22:02:19 +02:00
parent 6c5022ad83
commit c0614ea2b6
2 changed files with 2 additions and 1 deletions

@ -1 +1 @@
Subproject commit 32214a5ad3aa7ffdf4cd7a1592b98990ca5a559b
Subproject commit 453cf521d71f99f21f84fff96651c744b0f99a34

View File

@ -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);
}