mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-21 20:46:39 +00:00
Fix GetContactsRequest using str instead int (layer 70->71) (#234)
This commit is contained in:
parent
edf325d580
commit
06b2834c02
@ -859,7 +859,7 @@ class TelegramClient(TelegramBareClient):
|
|||||||
|
|
||||||
if isinstance(entity, str):
|
if isinstance(entity, str):
|
||||||
if entity.startswith('+'):
|
if entity.startswith('+'):
|
||||||
contacts = self(GetContactsRequest(''))
|
contacts = self(GetContactsRequest(0))
|
||||||
try:
|
try:
|
||||||
stripped_phone = entity.strip('+')
|
stripped_phone = entity.strip('+')
|
||||||
return next(
|
return next(
|
||||||
|
Loading…
Reference in New Issue
Block a user