private static void Bot_OnCallbackQuery(object sender, Telegram.Bot.Args.CallbackQueryEventArgs e) { Console.WriteLine("Incoming callback from: " + e.CallbackQuery.From); int msgid = Convert.ToInt32(e.CallbackQuery.InlineMessageId); var chatFinded = Chats.FindLast(chat => chat.WaitingCommands.Any(c => c.Message.MessageId == e.CallbackQuery.Message.MessageId)); if (chatFinded == null) { Console.WriteLine("Cannot find chat for this command: " + e.CallbackQuery.Message); } else { Commands.ContinueCommand(chatFinded, e.CallbackQuery); } }