From 6f29a8c077333c02f1eaa8ead27c58e12874f48e Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 12 Nov 2023 11:25:34 +0530 Subject: [PATCH] Disable web page previews for inline Signed-off-by: baalajimaestro --- src/nim_censor_bot.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nim_censor_bot.nim b/src/nim_censor_bot.nim index 317691e..edda791 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -213,7 +213,8 @@ proc inlineHandler(b: Telebot, u: InlineQuery): Future[bool]{.gcsafe, async.} = b.username & "?start=" & u.query & ")", - parseMode: some("Markdown")).some + parseMode: some("Markdown"), + disableWebPagePreview: some(true)).some else: res.title = "Waiting for File Hash" res.inputMessageContent = InputTextMessageContent(