2.0.0-beta.1 #77
david-lev
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What's Changed
Caution
Important
[listeners]: Listeners are a new way to handle incoming user updates (messages, callbacks, etc.). They are more flexible, faster, and easier to use than handlers.
[filters]: Filters are now objects that can be combined using logical operators. They are more powerful and flexible than the previous filter system.
[handlers]: Now you can register handlers with decorators without the need to use the
add_handler
method.[flows]: A new method
FlowCompletion.get_media(types.Image, key="img")
allows you to construct a media object and perform actions like.download()
on it.[flows]: Decrypt media directly from FlowRequest using
.decrypt_media(key, index)
.[client]: The client can run without a token but won’t allow API operations (only webhook listening).
[sent_message]: The
SentMessage
object returned bysend_message
,send_image
, etc., contains the message ID and allows to act on the sent message with methods likereply_x
,wait_for_x
etc.Full Changelog: 1.26.0...2.0.0-beta.1
This discussion was created from the release 2.0.0-beta.1.
Beta Was this translation helpful? Give feedback.
All reactions