Telethon/telethon_generator
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
..
parser Fix TLParser not stripping inline comments 2017-11-30 13:34:55 +01:00
__init__.py Add missing __init__.py to telethon_generator package (#382) 2017-10-25 19:48:46 +02:00
error_descriptions Add and except missing FLOOD_TEST_PHONE_WAIT_X error 2018-01-10 17:34:34 +01:00
error_generator.py Add and except missing FLOOD_TEST_PHONE_WAIT_X error 2018-01-10 17:34:34 +01:00
errors.json Generate errors from PWRTelegram's API 2017-10-20 17:20:05 +02:00
scheme.tl Update to layer 74 2018-01-02 00:02:31 +01:00
tl_generator.py Add new method to .resolve() parameters instead on init 2018-01-19 11:47:45 +01:00