mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
[core] add support of new bot api
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user