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