[core] add support of new bot api

This commit is contained in:
Andriy
2023-01-02 19:01:03 +02:00
parent 19a14bb1ea
commit eca77267d7
23 changed files with 40 additions and 42 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
using BotFramework.Attributes;
using BotFramework.Enums;
using Telegram.Bot;
using Telegram.Bot.Types.InputFiles;
using Telegram.Bot.Types;
namespace West.TelegramBot.ChatQuotes.Handler;
@@ -31,7 +31,7 @@ public class Quote : BotEventHandler
return;
}
await Bot.SendStickerAsync(Chat.Id, new InputOnlineFile(quoteImage),
await Bot.SendStickerAsync(Chat.Id, new InputFile(quoteImage),
replyToMessageId: msg.MessageId);
}
}
@@ -19,7 +19,7 @@ public class NullToEmptyObjectValueProvider : IValueProvider
return result;
}
public void SetValue(object target, object value)
public void SetValue(object target, object? value)
{
_memberInfo.SetValue(target, value);
}