Library for automatic registration telegram User Api (beta)
Project description
tg-api-autoreg
Alexand Macheck, my telegram Python module for automatic registration Telegram User API
pip install tg-api-autoreg
Examples:
Short:
phone = '+123456789'
proxy = '127.0.0.1:8888'
session = Reigister_api(phone, proxy, send_code=True) # initializing
data = session.get_api(input('code: '))
print(data) # -> dict with all avliable info (with api_id, api_hash)
Detailed:
phone = '+123456789'
proxy = '127.0.0.1:8888'
session = Reigister_api(phone, proxy) # initializing
random_hash = seesion.send_code() # Send code request
cookies = session.login(input('confirmation code:')) # passing conf code
session.create_api() # creating new api
session.parse_api_data() # parsing & saving all api_id, api_hash
data = session.api_data()
print(data) # -> dict with all avliable info (with api_id, api_hash)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tg_api_autoreg-0.1.1.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for tg_api_autoreg-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c679feb535c1012e497df85e42d186797beed94af30fd2d71fbb8c418145084c |
|
MD5 | 192ae0fd7d5353582cd1e3c74a219bb8 |
|
BLAKE2b-256 | e1ed22f064e89f87a5a51880b4e9789dc0fec6b013fcc8d7c04ef409401fd425 |