xooniverse / televerse

Your gateway to seamless Telegram Bot Development 💙
https://televerse.xooniverse.com
BSD 3-Clause "New" or "Revised" License
65 stars 11 forks source link

Add async callback `onStopAsync` #257

Closed devsdocs closed 5 months ago

devsdocs commented 5 months ago

Useful if the callback required an async operation, not perfect but just a simple idea.

HeySreelal commented 5 months ago

Hey!! Thanks for the contribution and the idea!

But, I think it's better to make the current _onStop method to accept something like FutureOr<void> Function(), so we don't have to add a separate method to do the same, right? Let me know what you think :)

devsdocs commented 5 months ago

Agree! Even better.

HeySreelal commented 5 months ago

Perfect, I'll wait for the updated PR - if you're on this :)