mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix isisintance typo (#3749)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user