From 3d6a2bb94513b7ed1422dcbd04d5a288735028ae Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sun, 14 Mar 2021 11:31:03 +0100 Subject: [PATCH] Update to version 1.21 --- readthedocs/misc/changelog.rst | 41 ++++++++++++++++++++++++++++++ telethon/version.py | 2 +- telethon_generator/data/errors.csv | 1 + 3 files changed, 43 insertions(+), 1 deletion(-) diff --git a/readthedocs/misc/changelog.rst b/readthedocs/misc/changelog.rst index 8420560a..94b37f56 100644 --- a/readthedocs/misc/changelog.rst +++ b/readthedocs/misc/changelog.rst @@ -14,6 +14,47 @@ it can take advantage of new goodies! .. contents:: List of All Versions +New schema and QoL improvements (v1.21) +======================================= + ++------------------------+ +| Scheme layer used: 125 | ++------------------------+ + +`View new and changed raw API methods `__. + +Not many changes in this release, mostly the layer change. Lately quite a few +people have been reporting `TypeNotFoundError`, which occurs when the server +**sends types that it shouldn't**. This can happen when Telegram decides to +add a new, incomplete layer, and then they change the layer without bumping +the layer number (so some constructor IDs no longer match and the error +occurs). This layer change +`should fix it `__. + +Additions +~~~~~~~~~ + +* `Message.click() ` now supports + a ``password`` parameter, needed when doing things like changing the owner + of a bot via `@BotFather `__. + +Enhancements +~~~~~~~~~~~~ + +* ``tgcrypto`` will now be used for encryption when installed. + +Bug fixes +~~~~~~~~~ + +* `Message.edit ` wasn't working in + your own chat on events other than ``NewMessage``. +* `client.delete_dialog() ` + was not working on chats. +* ``events.UserUpdate`` should now handle channels' typing status. +* :tl:`InputNotifyPeer` auto-cast should now work on other ``TLObject``. +* For some objects, ``False`` was not correctly serialized. + + New schema and QoL improvements (v1.20) ======================================= diff --git a/telethon/version.py b/telethon/version.py index bc924feb..1b84e541 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.20' +__version__ = '1.21' diff --git a/telethon_generator/data/errors.csv b/telethon_generator/data/errors.csv index 135d4888..f898bf6d 100644 --- a/telethon_generator/data/errors.csv +++ b/telethon_generator/data/errors.csv @@ -38,6 +38,7 @@ BOT_MISSING,400,This method can only be run by a bot BOT_PAYMENTS_DISABLED,400,This method can only be run by a bot BOT_POLLS_DISABLED,400,You cannot create polls under a bot account BOT_RESPONSE_TIMEOUT,400,The bot did not answer to the callback query in time +BROADCAST_CALLS_DISABLED,400, BROADCAST_FORBIDDEN,403,The request cannot be used in broadcast channels BROADCAST_ID_INVALID,400,The channel is invalid BROADCAST_PUBLIC_VOTERS_FORBIDDEN,400,You cannot broadcast polls where the voters are public