Update PromptDialog.cs
- adding additional checks to promptdialog
This commit is contained in:
parent
f24c309f63
commit
e1b31b0b9a
@ -46,6 +46,9 @@ namespace TelegramBotBase.Form
|
|||||||
if (message.Handled)
|
if (message.Handled)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!message.IsFirstHandler)
|
||||||
|
return;
|
||||||
|
|
||||||
if (this.ShowBackButton && message.MessageText == BackLabel)
|
if (this.ShowBackButton && message.MessageText == BackLabel)
|
||||||
{
|
{
|
||||||
await this.CloseForm();
|
await this.CloseForm();
|
||||||
@ -81,6 +84,8 @@ namespace TelegramBotBase.Form
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.Handled = true;
|
||||||
|
|
||||||
OnCompleted(new EventArgs());
|
OnCompleted(new EventArgs());
|
||||||
|
|
||||||
await this.CloseForm();
|
await this.CloseForm();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user