From 8c78ea15d4f308623d9253e6e5c5cdad845a158c Mon Sep 17 00:00:00 2001
From: Wizou <11647984+wiz0u@users.noreply.github.com>
Date: Mon, 22 Jul 2024 13:52:16 +0200
Subject: [PATCH] minor updates
---
Examples/Examples.csproj | 1 -
src/3/updates/webhook.md | 5 ++++-
src/FAQ.md | 2 +-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/Examples/Examples.csproj b/Examples/Examples.csproj
index 6102bda..5f6362a 100644
--- a/Examples/Examples.csproj
+++ b/Examples/Examples.csproj
@@ -8,7 +8,6 @@
-
diff --git a/src/3/updates/webhook.md b/src/3/updates/webhook.md
index 5181a8f..17469b7 100644
--- a/src/3/updates/webhook.md
+++ b/src/3/updates/webhook.md
@@ -1,7 +1,8 @@
# Webhooks
[![Webhook guide](https://img.shields.io/badge/Bot_API-Webhook%20guide-blue.svg?style=flat-square)](https://core.telegram.org/bots/webhooks)
-[![Webhook ASP.NET example](https://img.shields.io/badge/Examples-ASP.NET%20WebApp-green?style=flat-square)](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/master/Webhook.MinimalAPIs)
+[![ASP.NET example with Controllers](https://img.shields.io/badge/Examples-Webhook.Controllers-green?style=flat-square)](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/master/Webhook.Controllers)
+[![ASP.NET example with Minimal APIs](https://img.shields.io/badge/Examples-Webhook.MinimalAPIs-green?style=flat-square)](https://github.com/TelegramBots/Telegram.Bot.Examples/tree/master/Webhook.MinimalAPIs)
With Webhook, your application gets notified automatically by Telegram when new updates arrive for your bot.
@@ -78,6 +79,8 @@ await bot.SetWebhookAsync("https://your.public.host:port/bot", allowedUpdates: [
You can now deploy your app to your webapp host machine.
+_Note: If you decide to switch back to [Long Polling](polling.md), remember to call `bot.DeleteWebhookAsync()`_
+
## Common issues
- You need a supported certificate
diff --git a/src/FAQ.md b/src/FAQ.md
index 4336caa..60c2d24 100644
--- a/src/FAQ.md
+++ b/src/FAQ.md
@@ -58,7 +58,7 @@ Set the `media.Caption` (and `media.ParseMode`) on the first media
### _13. How to write a bot that make questions/answers with users?_
Either you can code a complex state machine workflow, saving where each user is currently in the discussion.
-Or you can just use [YourEasyBot](https://github.com/wiz0u/YourEasyBot) which makes sequential bots very simple to write... _(or one of the [other frameworks](https://github.com/TelegramBots/Telegram.Bot/issues/1072) available for Telegram.Bot)_
+Or you can just use [YourEasyBot](https://github.com/wiz0u/YourEasyBot) which makes sequential bots very simple to write... _(or one of the [other frameworks](https://github.com/TelegramBots/Telegram.Bot/wiki) available for Telegram.Bot)_
### _14. How to make font effects in message?_
Pass a `ParseMode.Html` _(or `ParseMode.MarkDownV2`)_ to argument `parseMode`. See [formatting options](https://core.telegram.org/bots/api#formatting-options).