Update to v1.5

This commit is contained in:
Lonami Exo 2018-12-25 17:55:15 +01:00
parent fc46e1ec20
commit 342a4dd502
3 changed files with 51 additions and 1 deletions

View File

@ -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() <telethon.client.users.UserMethods.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() <telethon.tl.custom.messagebutton.MessageButton.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)
========================================

View File

@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.4.3'
__version__ = '1.5'

View File

@ -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

1 name codes description
84 FILE_PART_LENGTH_INVALID 400 The length of a file part is invalid
85 FILE_PART_SIZE_INVALID 400 The provided file part size is invalid
86 FILE_PART_X_MISSING 400 Part {which} of the file is missing from storage
87 FILEREF_UPGRADE_NEEDED 406 The file reference needs to be refreshed before being used again
88 FIRSTNAME_INVALID 400 The first name is invalid
89 FLOOD_TEST_PHONE_WAIT_X 420 A wait of {seconds} seconds is required in the test servers
90 FLOOD_WAIT_X 420 A wait of {seconds} seconds is required