Прекрасно делается через switchswitch
:
switch (update.Type)
{
case UpdateType.CallbackQuery:
chatId = update.CallbackQuery.Message.Chat.Id;
var pressedButtonID = update.CallbackQuery.Data; // Сюда вытягиваешь callbackData из кнопки.
Console.WriteLine($"Pressed button = {pressedButtonID}");
break;
default:
break;
}