Update PromptDialog.cs

- adding additional checks to promptdialog
This commit is contained in:
FlorianDahn 2020-11-03 20:38:07 +01:00
parent f24c309f63
commit e1b31b0b9a

View File

@ -46,6 +46,9 @@ namespace TelegramBotBase.Form
if (message.Handled)
return;
if (!message.IsFirstHandler)
return;
if (this.ShowBackButton && message.MessageText == BackLabel)
{
await this.CloseForm();
@ -81,6 +84,8 @@ namespace TelegramBotBase.Form
}
message.Handled = true;
OnCompleted(new EventArgs());
await this.CloseForm();