From 342a4dd502668a805107503261f8d1c6115fad23 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 25 Dec 2018 17:55:15 +0100 Subject: [PATCH] Update to v1.5 --- readthedocs/extra/changelog.rst | 49 ++++++++++++++++++++++++++++++ telethon/version.py | 2 +- telethon_generator/data/errors.csv | 1 + 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/readthedocs/extra/changelog.rst b/readthedocs/extra/changelog.rst index 216b086c..f190d10e 100644 --- a/readthedocs/extra/changelog.rst +++ b/readthedocs/extra/changelog.rst @@ -14,6 +14,55 @@ it can take advantage of new goodies! .. contents:: List of All Versions +Polls with the Latest Layer (v1.5) +================================== + +*Published at 2018/12/25* + ++-----------------------+ +| Scheme layer used: 91 | ++-----------------------+ + +This version doesn't really bring many new features, but rather focuses on +updating the code base to support the latest available Telegram layer, 91. +This layer brings polls, and you can create and manage them through Telethon! + +Breaking Changes +~~~~~~~~~~~~~~~~ + +* The layer change from 82 to 91 changed a lot of things in the raw API, + so be aware that if you rely on raw API calls, you may need to update + your code, in particular **if you work with files**. They have a new + ``file_reference`` parameter that you must provide. + +Additions +~~~~~~~~~ + +* New `client.is_bot() ` method. + +Bug fixes +~~~~~~~~~ + +* Markdown and HTML parsing now behave correctly with leading whitespace. +* HTTP connection should now work correctly again. +* Using ``caption=None`` would raise an error instead of setting no caption. +* ``KeyError`` is now handled properly when forwarding messages. +* `button.click() ` + now works as expected for :tl:`KeyboardButtonGame`. + +Enhancements +~~~~~~~~~~~~ + +* Some improvements to the search in the full API and generated examples. +* Using entities with ``access_hash = 0`` will now work in more cases. + +Internal changes +~~~~~~~~~~~~~~~~ + +* Some changes to the documentation and code generation. +* 2FA code was updated to work under the latest layer. + + Error Descriptions in CSV files (v1.4.3) ======================================== diff --git a/telethon/version.py b/telethon/version.py index 91bf06fb..9d5405f3 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__ = '1.4.3' +__version__ = '1.5' diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index 6812eec8..fc640bc4 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -84,6 +84,7 @@ FILE_PART_INVALID,400,The file part number is invalid FILE_PART_LENGTH_INVALID,400,The length of a file part is invalid FILE_PART_SIZE_INVALID,400,The provided file part size is invalid FILE_PART_X_MISSING,400,Part {which} of the file is missing from storage +FILEREF_UPGRADE_NEEDED,406,The file reference needs to be refreshed before being used again FIRSTNAME_INVALID,400,The first name is invalid FLOOD_TEST_PHONE_WAIT_X,420,A wait of {seconds} seconds is required in the test servers FLOOD_WAIT_X,420,A wait of {seconds} seconds is required