Update to v1.22

This commit is contained in:
Lonami Exo 2021-06-19 19:08:02 +02:00
parent 7c1ad0cadb
commit 2052b502c8
4 changed files with 33 additions and 3 deletions

View File

@ -13,6 +13,35 @@ it can take advantage of new goodies!
.. contents:: List of All Versions
New schema and bug fixes (v1.22)
================================
+------------------------+
| Scheme layer used: 129 |
+------------------------+
`View new and changed raw API methods <https://diff.telethon.dev/?from=125&to=129>`__.
Enhancements
~~~~~~~~~~~~
* You can now specify a message in `client.get_stats()
<telethon.client.chats.ChatMethods.get_stats>`.
* Metadata extraction from audio files with ``hachoir`` now recognises "artist".
* Get default chat permissions by not supplying a user to `client.get_permissions()
<telethon.client.chats.ChatMethods.get_permissions>`.
* You may now use ``thumb`` when editing messages.
Bug fixes
~~~~~~~~~
* Fixes regarding bot markup in messages.
* Gracefully handle :tl:`ChannelForbidden` in ``get_sender``.
And from v1.21.1:
* ``file.width`` and ``.height`` was not working correctly in photos.
* Raw API was mis-interpreting ``False`` values on boolean flag parameters.
New schema and QoL improvements (v1.21)
=======================================

View File

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

View File

@ -141,6 +141,7 @@ FRESH_RESET_AUTHORISATION_FORBIDDEN,406,The current session is too new and canno
FROM_PEER_INVALID,400,The given from_user peer cannot be used for the parameter
GAME_BOT_INVALID,400,You cannot send that game with the current bot
GIF_ID_INVALID,400,The provided GIF ID is invalid
GRAPH_INVALID_RELOAD,400,
GRAPH_OUTDATED_RELOAD,400,"Data can't be used for the channel statistics, graphs outdated"
GROUPCALL_FORBIDDEN,403,
GROUPCALL_JOIN_MISSING,400,

1 name codes description
141 FROM_PEER_INVALID 400 The given from_user peer cannot be used for the parameter
142 GAME_BOT_INVALID 400 You cannot send that game with the current bot
143 GIF_ID_INVALID 400 The provided GIF ID is invalid
144 GRAPH_INVALID_RELOAD 400
145 GRAPH_OUTDATED_RELOAD 400 Data can't be used for the channel statistics, graphs outdated
146 GROUPCALL_FORBIDDEN 403
147 GROUPCALL_JOIN_MISSING 400

View File

@ -331,7 +331,7 @@ rpcDropAnswer,both,
setClientDHParams,both,
stats.getBroadcastStats,user,BROADCAST_REQUIRED CHAT_ADMIN_REQUIRED CHP_CALL_FAIL STATS_MIGRATE_X
stats.getMegagroupStats,user,CHAT_ADMIN_REQUIRED MEGAGROUP_REQUIRED STATS_MIGRATE_X
stats.loadAsyncGraph,user,GRAPH_OUTDATED_RELOAD
stats.loadAsyncGraph,user,GRAPH_INVALID_RELOAD GRAPH_OUTDATED_RELOAD
stickers.addStickerToSet,bot,BOT_MISSING STICKERSET_INVALID STICKER_PNG_NOPNG STICKER_TGS_NOTGS
stickers.changeStickerPosition,bot,BOT_MISSING STICKER_INVALID
stickers.createStickerSet,bot,BOT_MISSING PACK_SHORT_NAME_INVALID PACK_SHORT_NAME_OCCUPIED PEER_ID_INVALID SHORTNAME_OCCUPY_FAILED STICKERS_EMPTY STICKER_EMOJI_INVALID STICKER_FILE_INVALID STICKER_PNG_DIMENSIONS STICKER_PNG_NOPNG STICKER_TGS_NOTGS STICKER_THUMB_PNG_NOPNG STICKER_THUMB_TGS_NOTGS USER_ID_INVALID

1 method usability errors
331 setClientDHParams both
332 stats.getBroadcastStats user BROADCAST_REQUIRED CHAT_ADMIN_REQUIRED CHP_CALL_FAIL STATS_MIGRATE_X
333 stats.getMegagroupStats user CHAT_ADMIN_REQUIRED MEGAGROUP_REQUIRED STATS_MIGRATE_X
334 stats.loadAsyncGraph user GRAPH_OUTDATED_RELOAD GRAPH_INVALID_RELOAD GRAPH_OUTDATED_RELOAD
335 stickers.addStickerToSet bot BOT_MISSING STICKERSET_INVALID STICKER_PNG_NOPNG STICKER_TGS_NOTGS
336 stickers.changeStickerPosition bot BOT_MISSING STICKER_INVALID
337 stickers.createStickerSet bot BOT_MISSING PACK_SHORT_NAME_INVALID PACK_SHORT_NAME_OCCUPIED PEER_ID_INVALID SHORTNAME_OCCUPY_FAILED STICKERS_EMPTY STICKER_EMOJI_INVALID STICKER_FILE_INVALID STICKER_PNG_DIMENSIONS STICKER_PNG_NOPNG STICKER_TGS_NOTGS STICKER_THUMB_PNG_NOPNG STICKER_THUMB_TGS_NOTGS USER_ID_INVALID