Telethon/telethon
Lonami Exo 1c9fa76ede Add new method to .resolve() parameters instead on init
TLObject's __init__ used to call utils.get_input_* methods and
similar to auto-cast things like User into InputPeerUser as
required. Now there's a custom .resolve() method for this purpose
with several advantages:
- Old behaviour still works, autocasts work like usual.

- A request can be constructed and later modified, before the
  autocast only occured on the constructor but now while invoking.

- This allows us to not only use the utils module but also the
  client, so it's even possible to use usernames or phone numbers
  for things that require an InputPeer. This actually assumes
  the TelegramClient subclass is being used and not the bare version
  which would fail when calling .get_input_peer().
2018-01-19 11:47:45 +01:00
..
crypto Move utils.calc_msg_key into auth_key (cyclic imports py3.4) 2018-01-08 12:07:14 +01:00
errors Make exception types correspond to Python docs 2017-12-28 09:48:02 +10:00
extensions Also handle ECONNREFUSED on .connect() (report on #392) 2018-01-08 12:26:32 +01:00
network Add more useful logging on invalid packet length received 2018-01-13 19:26:45 +01:00
tl Add new method to .resolve() parameters instead on init 2018-01-19 11:47:45 +01:00
__init__.py Use NullHandler as default for the library 2017-11-13 10:59:43 +01:00
helpers.py Move utils.calc_msg_key into auth_key (cyclic imports py3.4) 2018-01-08 12:07:14 +01:00
telegram_bare_client.py Add new method to .resolve() parameters instead on init 2018-01-19 11:47:45 +01:00
telegram_client.py Return a custom class for sized InputFile instead extra attrs 2018-01-18 20:09:59 +01:00
update_state.py Make a proper use of the logging module 2017-12-20 12:47:39 +01:00
utils.py Fix .get_input_media using None caption and missing venue type 2018-01-16 14:04:12 +01:00
version.py Update to v0.16.1 2018-01-11 22:18:58 +01:00