Preparation for version switch from 19 to 21

This commit is contained in:
Florian Zevedei 2024-10-14 01:45:46 +02:00
parent fb88d15485
commit b37b1e2a64
2 changed files with 2 additions and 2 deletions

View File

@ -82,7 +82,7 @@ public class PromptDialog : ModalDialog
{ {
var bf = new ButtonForm(); var bf = new ButtonForm();
bf.AddButtonRow(new ButtonBase(BackLabel, "back")); bf.AddButtonRow(new ButtonBase(BackLabel, "back"));
await Device.Send(Message, (ReplyMarkupBase)bf); await Device.Send(Message, (IReplyMarkup)bf);
return; return;
} }

View File

@ -312,7 +312,7 @@ public class DeviceSession : IDeviceSession
/// <param name="replyTo"></param> /// <param name="replyTo"></param>
/// <param name="disableNotification"></param> /// <param name="disableNotification"></param>
/// <returns></returns> /// <returns></returns>
public async Task<Message> Send(string text, ReplyMarkupBase markup, int replyTo = 0, public async Task<Message> Send(string text, IReplyMarkup markup, int replyTo = 0,
bool disableNotification = false, ParseMode parseMode = ParseMode.Markdown, bool disableNotification = false, ParseMode parseMode = ParseMode.Markdown,
bool markdownV2AutoEscape = true) bool markdownV2AutoEscape = true)
{ {