mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
fix: build and lots of obsolete warnings
This commit is contained in:
@@ -54,7 +54,7 @@ public abstract class AbstractAnimationReply : BotEventHandler
|
||||
animationFileOption.SetValue(animation.FileId);
|
||||
_db.AddOrUpdate(animationFileOption);
|
||||
|
||||
await Bot.SendTextMessageAsync(Chat.Id, "Animation has been set.", replyToMessageId: Message!.ReplyToMessage!.MessageId);
|
||||
await Bot.SendMessage(Chat.Id, "Animation has been set.", replyParameters: Message!.ReplyToMessage!.MessageId);
|
||||
}
|
||||
|
||||
protected virtual async Task<bool> HandleAnimation()
|
||||
@@ -84,8 +84,8 @@ public abstract class AbstractAnimationReply : BotEventHandler
|
||||
return false;
|
||||
}
|
||||
|
||||
await Bot.SendAnimationAsync(Chat.Id, new InputFileId(animationFileId),
|
||||
replyToMessageId: GetMessageIdToReply() ?? Message?.MessageId);
|
||||
await Bot.SendAnimation(Chat.Id, new InputFileId(animationFileId),
|
||||
replyParameters: GetMessageIdToReply() ?? Message?.MessageId);
|
||||
|
||||
nextUseOption.SetValue(DateTime.Now + Cooldown);
|
||||
_db.AddOrUpdate(nextUseOption);
|
||||
|
||||
Reference in New Issue
Block a user