mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-10 19:46:36 +03:00
Update to version 1.21
This commit is contained in:
parent
bdc324760d
commit
3d6a2bb945
|
@ -14,6 +14,47 @@ it can take advantage of new goodies!
|
||||||
.. contents:: List of All Versions
|
.. contents:: List of All Versions
|
||||||
|
|
||||||
|
|
||||||
|
New schema and QoL improvements (v1.21)
|
||||||
|
=======================================
|
||||||
|
|
||||||
|
+------------------------+
|
||||||
|
| Scheme layer used: 125 |
|
||||||
|
+------------------------+
|
||||||
|
|
||||||
|
`View new and changed raw API methods <https://diff.telethon.dev/?from=124&to=125>`__.
|
||||||
|
|
||||||
|
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 <https://github.com/LonamiWebs/Telethon/issues/1724>`__.
|
||||||
|
|
||||||
|
Additions
|
||||||
|
~~~~~~~~~
|
||||||
|
|
||||||
|
* `Message.click() <telethon.tl.custom.message.Message.click>` now supports
|
||||||
|
a ``password`` parameter, needed when doing things like changing the owner
|
||||||
|
of a bot via `@BotFather <https://t.me/BotFather>`__.
|
||||||
|
|
||||||
|
Enhancements
|
||||||
|
~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* ``tgcrypto`` will now be used for encryption when installed.
|
||||||
|
|
||||||
|
Bug fixes
|
||||||
|
~~~~~~~~~
|
||||||
|
|
||||||
|
* `Message.edit <telethon.tl.custom.message.Message.edit>` wasn't working in
|
||||||
|
your own chat on events other than ``NewMessage``.
|
||||||
|
* `client.delete_dialog() <telethon.client.dialogs.DialogMethods.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)
|
New schema and QoL improvements (v1.20)
|
||||||
=======================================
|
=======================================
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.20'
|
__version__ = '1.21'
|
||||||
|
|
|
@ -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_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_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
|
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_FORBIDDEN,403,The request cannot be used in broadcast channels
|
||||||
BROADCAST_ID_INVALID,400,The channel is invalid
|
BROADCAST_ID_INVALID,400,The channel is invalid
|
||||||
BROADCAST_PUBLIC_VOTERS_FORBIDDEN,400,You cannot broadcast polls where the voters are public
|
BROADCAST_PUBLIC_VOTERS_FORBIDDEN,400,You cannot broadcast polls where the voters are public
|
||||||
|
|
|
Loading…
Reference in New Issue
Block a user