private async Task OnOtdelQueryReceived(CallbackQueryEventArgs callbackQueryEventArgs) { var callbackQuery = callbackQueryEventArgs.CallbackQuery; if (userData != null) { userData.OtdelID = Int32.Parse(callbackQuery.Data); UsersTable.AddUser(userData); await Bot.SendTextMessageAsync( chatId : callbackQuery.Message.Chat.Id, text : $"Вы зарегистрированы!" ); } onGetAnswer = OnDefautAnswer; }