From 806e463df005fc8fd2c22b0d427f65aa761185be Mon Sep 17 00:00:00 2001 From: James R T Date: Sun, 27 Feb 2022 20:43:25 +0800 Subject: [PATCH] Change isisintance to isinstance in utils.py --- telethon/_misc/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/_misc/utils.py b/telethon/_misc/utils.py index 78677142..9121637a 100644 --- a/telethon/_misc/utils.py +++ b/telethon/_misc/utils.py @@ -966,7 +966,7 @@ def get_peer_id(peer): Extract the integer ID from the given :tl:`Peer`. """ pid = getattr(peer, 'user_id', None) or getattr(peer, 'channel_id', None) or getattr(peer, 'chat_id', None) - if not isisintance(pid, int): + if not isinstance(pid, int): _raise_cast_fail(peer, 'int') return pid