fix: build and lots of obsolete warnings

This commit is contained in:
Andriy
2025-02-09 17:40:03 +02:00
parent 8917a8ba5f
commit c3a553f68d
29 changed files with 103 additions and 108 deletions
+2 -2
View File
@@ -23,7 +23,7 @@ public static class MessageExtension
{
try
{
var chat = await bot.GetChatAsync(
var chat = await bot.GetChat(
new ChatId(message.Text.Substring(mention.Offset, mention.Length)));
if (chat != null)
@@ -42,7 +42,7 @@ public static class MessageExtension
}
}
var status = (await bot.GetChatMemberAsync(message.Chat, userId)).Status;
var status = (await bot.GetChatMember(message.Chat, userId)).Status;
if ((new ChatMemberStatus[]
{