v3.1.0 (latest)
Breaking changes
Client.stop_listening
is now an async function, so you must await it if you're calling it on your code. If you don't use stop_listening, there is no breaking changes for you.
Highlights of this release
register_next_step_handler
is finally here! A lot of people that asks for conversation handling on Pyrogram (and don't know pyromod yet) actually wants something like pyTelegramBotApi does withregister_next_step_handler
. Well, finally you can use it in Pyrogram, with pyromod! And it's not based on Futures likelisten
andask
are, so those who don't like pyromod might like this new feature.
The difference from pyTelegramBotApi's approach is that with pyromod, your callback will actually receive the Client object and the received Message (or CallbackQuery). In pyTelegramBotApi, the callback receives only the Message. Also, you don't need to call any other function than register_next_step_handler
. You just call it passing your callback and that's all! Check the example below:
- Now pyromod accepts lists of values for
chat_id
,user_id
,message_id
andinline_message_id
.
- Now pyromod accepts usernames for
chat_id
anduser_id
, so the example above could also be:
Other changes
- Thanks to @jusidama18 with #34, now pyromod will also work if you use sync filters.
Full Changelog: https://github.com/usernein/pyromod/compare/v3.0.0...v3.1.0