Skip to content

Commit

Permalink
Update to v1.22
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Jun 19, 2021
1 parent 7c1ad0c commit 2052b50
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
29 changes: 29 additions & 0 deletions readthedocs/misc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
=======================================
Expand Down
2 changes: 1 addition & 1 deletion telethon/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.21.1'
__version__ = '1.22.0'
1 change: 1 addition & 0 deletions telethon_generator/data/errors.csv
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions telethon_generator/data/methods.csv
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ payments.sendPaymentForm,user,MESSAGE_ID_INVALID
payments.validateRequestedInfo,user,MESSAGE_ID_INVALID
phone.acceptCall,user,CALL_ALREADY_ACCEPTED CALL_ALREADY_DECLINED CALL_OCCUPY_FAILED CALL_PEER_INVALID CALL_PROTOCOL_FLAGS_INVALID
phone.confirmCall,user,CALL_ALREADY_DECLINED CALL_PEER_INVALID
phone.createGroupCall,user,SCHEDULE_DATE_INVALID
phone.createGroupCall,user,SCHEDULE_DATE_INVALID
phone.discardCall,user,CALL_ALREADY_ACCEPTED CALL_PEER_INVALID
phone.getCallConfig,user,
phone.inviteToGroupCall,user,GROUPCALL_FORBIDDEN
Expand All @@ -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
Expand Down

0 comments on commit 2052b50

Please sign in to comment.