From 06bc761a5b794283c895e66460edd7bdeee187d7 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 3 Feb 2018 16:03:17 +0100 Subject: [PATCH] Update to v0.17 --- readthedocs/extra/changelog.rst | 45 +++++++++++++++++++++++++++++++++ telethon/version.py | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/readthedocs/extra/changelog.rst b/readthedocs/extra/changelog.rst index 580ebe4b..2e11fc7d 100644 --- a/readthedocs/extra/changelog.rst +++ b/readthedocs/extra/changelog.rst @@ -14,6 +14,51 @@ it can take advantage of new goodies! .. contents:: List of All Versions +Trust the Server with Updates (v0.17) +===================================== + +*Published at 2018/02/03* + +The library trusts the server with updates again. The library will *not* +check for duplicates anymore, and when the server kicks us, it will run +``GetStateRequest`` so the server starts sending updates again (something +it wouldn't do unless you invoked something, it seems). But this update +also brings a few more changes! + +Additions +~~~~~~~~~ + +- ``TLObject``'s override ``__eq__`` and ``__ne__``, so you can compare them. +- Added some missing cases on ``.get_input_entity()`` and peer functions. +- ``obj.to_dict()`` now has a ``'_'`` key with the type used. +- ``.start()`` can also sign up now. +- More parameters for ``.get_message_history()``. +- Updated list of RPC errors. +- HTML parsing thanks to **@tulir**! It can be used similar to markdown: + ``client.send_message(..., parse_mode='html')``. + + +Enhancements +~~~~~~~~~~~~ + +- ``client.send_file()`` now accepts ``Message``'s and + ``MessageMedia``'s as the ``file`` parameter. +- Some documentation updates and fixed to clarify certain things. +- New exact match feature on https://lonamiwebs.github.io/Telethon. +- Return as early as possible from ``.get_input_entity()`` and similar, + to avoid penalizing you for doing this right. + +Bug fixes +~~~~~~~~~ + +- ``.download_media()`` wouldn't accept a ``Document`` as parameter. +- The SQLite is now closed properly on disconnection. +- IPv6 addresses shouldn't use square braces. +- Fix regarding ``.log_out()``. +- The time offset wasn't being used (so having wrong system time would + cause the library not to work at all). + + New ``.resolve()`` method (v0.16.2) =================================== diff --git a/telethon/version.py b/telethon/version.py index 28c39d24..675ca0af 100644 --- a/telethon/version.py +++ b/telethon/version.py @@ -1,3 +1,3 @@ # Versions should comply with PEP440. # This line is parsed in setup.py: -__version__ = '0.16.2' +__version__ = '0.17'