From bd1aa88a884150b2e33f8950347266565417c4b2 Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 9 Jan 2023 15:14:18 +0100 Subject: [PATCH] Ignore messages likely not meant for us --- Program.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Program.cs b/Program.cs index e5c4e2d..a9f1324 100644 --- a/Program.cs +++ b/Program.cs @@ -103,6 +103,10 @@ async Task BotOnMessageReceived(ITelegramBotClient botClient, Message message) { } } } + else { + // likely not a message meant for us + return; + } } switch (command) {