PaulSonOfLars / gotgbot

Autogenerated Go wrapper for the telegram API. Inspired by the python-telegram-bot library.
MIT License
469 stars 107 forks source link

Ensure that conversation Exit handlers end conversations #93

Closed PaulSonOfLars closed 1 year ago

PaulSonOfLars commented 1 year ago

What

Someone mentioned that the Exits option for conversation handlers doesnt actually exit the conversation, and requires manually specifying EndConversation(). This is counterintuitive - an exit handler should exit by default.

This PR fixes this, by ensuring that Exit handlers do in fact exit if nothing else is returned.

Impact