From 047777fada22bd5bd611f9766594188951bc3d55 Mon Sep 17 00:00:00 2001 From: "v.korobov" Date: Mon, 8 Aug 2022 23:04:36 +0300 Subject: [PATCH] Fixed TOKEN visibility in fastapi swagger --- examples/webhook_examples/webhook_fastapi_echo_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/webhook_examples/webhook_fastapi_echo_bot.py b/examples/webhook_examples/webhook_fastapi_echo_bot.py index 433b9a1..7eb97ab 100644 --- a/examples/webhook_examples/webhook_fastapi_echo_bot.py +++ b/examples/webhook_examples/webhook_fastapi_echo_bot.py @@ -33,7 +33,7 @@ telebot.logger.setLevel(logging.INFO) bot = telebot.TeleBot(API_TOKEN) -app = fastapi.FastAPI() +app = fastapi.FastAPI(docs=None, redoc_url=None) # Process webhook calls