Update to new Telegram.Bot.

This commit is contained in:
West14
2021-12-25 16:41:17 +02:00
parent de08c74a5d
commit e1c404c660
13 changed files with 49 additions and 29 deletions
+2 -1
View File
@@ -30,6 +30,7 @@ namespace Kruzya.TelegramBot.Core
[HandleEverything]
public async Task Listener()
{
Console.WriteLine("handle");
foreach (var message in new Message[] {RawUpdate.Message, RawUpdate.EditedMessage, RawUpdate.ChannelPost, RawUpdate.EditedChannelPost})
{
if (message == null)
@@ -37,7 +38,7 @@ namespace Kruzya.TelegramBot.Core
continue;
}
await VerifyChatPair(message);
return new Task();
}
throw new ArgumentException();