mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-04-21 17:42:01 +03:00
Change isisintance to isinstance in utils.py
This commit is contained in:
parent
e80371b6d0
commit
806e463df0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user