mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +03:00
Update to v1.22
This commit is contained in:
parent
7c1ad0cadb
commit
2052b502c8
|
@ -13,6 +13,35 @@ it can take advantage of new goodies!
|
||||||
|
|
||||||
.. contents:: List of All Versions
|
.. 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)
|
New schema and QoL improvements (v1.21)
|
||||||
=======================================
|
=======================================
|
||||||
|
|
|
@ -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.21.1'
|
__version__ = '1.22.0'
|
||||||
|
|
|
@ -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
|
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
|
GAME_BOT_INVALID,400,You cannot send that game with the current bot
|
||||||
GIF_ID_INVALID,400,The provided GIF ID is invalid
|
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"
|
GRAPH_OUTDATED_RELOAD,400,"Data can't be used for the channel statistics, graphs outdated"
|
||||||
GROUPCALL_FORBIDDEN,403,
|
GROUPCALL_FORBIDDEN,403,
|
||||||
GROUPCALL_JOIN_MISSING,400,
|
GROUPCALL_JOIN_MISSING,400,
|
||||||
|
|
|
|
@ -331,7 +331,7 @@ rpcDropAnswer,both,
|
||||||
setClientDHParams,both,
|
setClientDHParams,both,
|
||||||
stats.getBroadcastStats,user,BROADCAST_REQUIRED CHAT_ADMIN_REQUIRED CHP_CALL_FAIL STATS_MIGRATE_X
|
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.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.addStickerToSet,bot,BOT_MISSING STICKERSET_INVALID STICKER_PNG_NOPNG STICKER_TGS_NOTGS
|
||||||
stickers.changeStickerPosition,bot,BOT_MISSING STICKER_INVALID
|
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
|
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
|
||||||
|
|
|
Loading…
Reference in New Issue
Block a user