Telethon/telethon/tl
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
..
custom Return a custom class for sized InputFile instead extra attrs 2018-01-18 20:09:59 +01:00
__init__.py Rename handmade Message class to TLMessage to avoid confusion 2017-09-28 11:59:24 +02:00
gzip_packed.py Replace .to_bytes() with the special .__bytes__ function 2017-10-17 19:54:59 +02:00
message_container.py Implement missing .to_dict() and .stringify() on message/container 2017-10-29 20:13:36 +01:00
session.py Properly implement InputPhoto/InputDocument caching 2018-01-18 19:36:47 +01:00
tl_message.py Implement missing .to_dict() and .stringify() on message/container 2017-10-29 20:13:36 +01:00
tlobject.py Add new method to .resolve() parameters instead on init 2018-01-19 11:47:45 +01:00