timoniq / telegrinder

Modern visionary telegram bot framework
MIT License
31 stars 5 forks source link

Adding an `exit` parameter for `WaiterMachine` to exit from current state #79

Closed prostomarkeloff closed 3 months ago

prostomarkeloff commented 3 months ago

✏️ Description ✏️

There was no way to look if the waiter machine is waiting for a message from a user. This is needed when cancelling a waiting or other fancy stuff.

The PR is too big cause of black formatting.


wm.is_waiting_for(bot.on.message, message.from_user.id)

🐛 Fixes # (issue)

📍 Type of change 📍

timoniq commented 3 months ago

Please use ruff instead of black formatting. Its configuration is already set up 👀

timoniq commented 3 months ago

Thanks :kiss: topchik