diff --git a/TelegramBotBase/Form/PromptDialog.cs b/TelegramBotBase/Form/PromptDialog.cs index a2d4c56..1d2d5f4 100644 --- a/TelegramBotBase/Form/PromptDialog.cs +++ b/TelegramBotBase/Form/PromptDialog.cs @@ -82,7 +82,7 @@ public class PromptDialog : ModalDialog { var bf = new ButtonForm(); bf.AddButtonRow(new ButtonBase(BackLabel, "back")); - await Device.Send(Message, (ReplyMarkupBase)bf); + await Device.Send(Message, (IReplyMarkup)bf); return; } diff --git a/TelegramBotBase/Sessions/DeviceSession.cs b/TelegramBotBase/Sessions/DeviceSession.cs index f2b49d2..05e9728 100644 --- a/TelegramBotBase/Sessions/DeviceSession.cs +++ b/TelegramBotBase/Sessions/DeviceSession.cs @@ -312,7 +312,7 @@ public class DeviceSession : IDeviceSession /// /// /// - public async Task Send(string text, ReplyMarkupBase markup, int replyTo = 0, + public async Task Send(string text, IReplyMarkup markup, int replyTo = 0, bool disableNotification = false, ParseMode parseMode = ParseMode.Markdown, bool markdownV2AutoEscape = true) {