Initial Home page

Lonami 2017-06-09 15:24:39 +02:00
commit b9380c745b

20
Home.md Normal file

@ -0,0 +1,20 @@
This wiki page is meant to be a place where everyone can find and contribute examples on how to use Telethon. All examples shown here assume that you've successfully created a client as follows:
```python
from telethon import TelegramClient
# Use your own values here
api_id = 12345
api_hash = '0123456789abcdef0123456789abcdef'
phone_number = '+34600000000'
client = TelegramClient('some_name', api_id, api_hash)
client.connect() # Must return True, otherwise, try again
if not client.is_user_authorized():
client.send_code_request(phone_number)
client.sign_in(phone_number, input('Enter code: '))
# The `client´ is now ready
```
The online documentation for all available requests, types and constructors is available online at https://lonamiwebs.github.io/Telethon/.