public override async Task RenderAsync(CallbackQuery callbackQuery) { var keyboardForm = new InlineKeyboardBuilder(); keyboardForm.AddButtonRow(InlineKeyboardButton.WithCallbackData("MainMenu", "MainMenu+Unsubscribe")) .AddButtonRow(InlineKeyboardButton.WithCallbackData("StopAutoRefresh", "MainMenu.WeatherInRealTime+Unsubscribe")); await _telegramBotClient.EditMessageTextAsync(callbackQuery.From.Id, callbackQuery.Message.MessageId, "Autorefreshing\n CurrentWeather:\n" + CurrentWeather.Get(), replyMarkup : keyboardForm.GetInlineKeyboard()); }
public override async Task RenderAsync(CallbackQuery callbackQuery) { var keyboardForm = new InlineKeyboardBuilder(); keyboardForm.AddButtonRow(InlineKeyboardButton.WithCallbackData("Weather in realtime", "MainMenu.WeatherInRealTime+")); await _telegramBotClient.EditMessageTextAsync(callbackQuery.From.Id, callbackQuery.Message.MessageId, "Main Menu:", replyMarkup : keyboardForm.GetInlineKeyboard()); }