timoniq / telegrinder

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

feature: add return_ctx to wait method and overload #33

Closed timoniq closed 11 months ago

timoniq commented 1 year ago

ctx is rarely needed therefore it can be omitted by default

message = await wm.wait(view, event, Rule())
message, ctx = await wm.wait(view, event, Rule(), return_ctx=True)