public async Task <IActionResult> DeleteHook() { var token = configuration.GetValue <string>("TelegramToken"); var client = new Telegram.Bot.TelegramBotClient(token, httpClient); await client.DeleteWebhookAsync(); return(RedirectToAction("Index")); }