Releases: pylakey/aiotdlib
v0.2.0 - Usability improvements
Added
-
@extra
field of incoming updates now available inEXTRA
attribute ofBaseObject
and is empty dict by default. It
is useful to store some user data there -
New filter factory
create_bot_command_filter(command: str)
to create specified command handler (useful for bots).
This filter parses message text as command and putsbot_command
andbot_command_args
toupdate.EXTRA
-
Client.text_message_handler
method for registration of text message handlersthis method is universal and can be used directly or as decorator
-
Client.bot_command_handler
method for registration of text message handlers with texts started with "/"this method is universal and can be used directly or as decorator
-
Client.parse_text
method to parse text entities according toparse_mode
parameter. By default,parse_mode
parameter from constructor will is used -
New high-level API method
Client.edit_message
- Edits the text of a message (or a text of a game message). Returns
the edited message after the edit is completed on the server side
v0.1.0 - Client cache, TDLib parameters constraints
Added
- Cache mechanism for chats, users and both types of groups
- New high-level API method
Client.get_main_list_chats(limit: int)
- Returns an ordered list of chats in a main chat
list. - Multiple raw methods wrappers which work the same but returns cached entity if it was found in cache:
get_chat
,get_user
,get_user_full_info
,get_basic_group
,get_basic_group_full_info
,get_supergroup
,get_supergroup_full_info
,get_secret_chat
- TL Schema parser now parses some parameters constraints in TL Schema such as nullability of parameter, min and max
length
Updated
- API objects were regenerated with updated parser
v0.0.2 - Automated parsing message text
Added
- added
parse_mode
param toClient
class. Default parse mode for high-level methods likesend_message
. Default: "
html"
Updated
Client.send_message
now automatically parses text entities in text. Text will be parsed according toparse_mode
option passed in constructor
Removed
- Removed redundant
CurrentAuthorizationState
class
v0.0.1 - First public release
Python asyncio wrapper for Telegram's TDLib based on Pydantic models