[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
+1 -1
View File
@@ -57,7 +57,7 @@ namespace West.Entertainment.Handler
.Br();
}
await Bot.SendTextMessageAsync(Chat.Id, msg.ToString(), ParseMode.Html);
await Bot.SendTextMessageAsync(Chat.Id, msg.ToString(), parseMode: ParseMode.Html);
}
}
}
@@ -82,7 +82,7 @@ namespace West.Entertainment.Handler.Fun
return false;
}
await Bot.SendAnimationAsync(Chat.Id, animationFileId,
await Bot.SendAnimationAsync(Chat.Id, new InputFileId(animationFileId),
replyToMessageId: GetMessageIdToReply() ?? Message?.MessageId);
nextUseOption.SetValue(DateTime.Now + Cooldown);