mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-26 03:13:45 +03:00
Fix isisintance typo (#3749)
This commit is contained in:
parent
e80371b6d0
commit
c47a9346e1
|
@ -966,7 +966,7 @@ def get_peer_id(peer):
|
||||||
Extract the integer ID from the given :tl:`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)
|
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')
|
_raise_cast_fail(peer, 'int')
|
||||||
|
|
||||||
return pid
|
return pid
|
||||||
|
|
Loading…
Reference in New Issue
Block a user