mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 13:14:31 +03: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 entity.startswith('+'):
|
||||
contacts = self(GetContactsRequest(''))
|
||||
contacts = self(GetContactsRequest(0))
|
||||
try:
|
||||
stripped_phone = entity.strip('+')
|
||||
return next(
|
||||
|
|
Loading…
Reference in New Issue
Block a user