Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from telethon.tl.functions.contacts import GetContactsRequest
- from telethon.tl.types.contacts import Contacts
- from telethon import *
- api_id = 1xxxx43
- api_hash = '1429acxxxxxxxxxxxxxxba8f5d7ba0'
- phone = '97250xxxx674'
- client = TelegramClient('@Session1', api_id, api_hash)
- client.connect()
- if not client.is_user_authorized():
- client.send_code_request(phone)
- client.sign_in(phone, input('Enter the code (+phone_number): '))
- gil_phone="+972523xxx0"
- result = client.get_entity(phone)
- print(result)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement