From b7fb137def5d51bd4369384f2fd59922607c80b3 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Thu, 25 May 2023 11:23:51 +0530 Subject: [PATCH] Fix deeplinks on ios Signed-off-by: baalajimaestro --- src/nim_censor_bot.nim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/nim_censor_bot.nim b/src/nim_censor_bot.nim index 27cf210..fde9dc8 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -209,8 +209,8 @@ proc inlineHandler(b: Telebot, u: InlineQuery): Future[bool]{.gcsafe, async.} = res.inputMessageContent = InputMessageContent(kind: TextMessage, messageText:"*NSFW " & capitalizeAscii(ftype) & - "*\n\n[Tap to View](tg://resolve?domain=" & - b.username & "&start=" & + "*\n\n[Tap to View](https://t.me/" & + b.username & "?start=" & u.query & ")", parseMode: some("Markdown")).some @@ -274,9 +274,9 @@ proc updateHandler(b: Telebot, u: Update): Future[bool] {.async, gcsafe.} = discard await b.sendMessage(response.chat.id, "*NSFW " & "Album" & - "*\n\n[Tap to View](tg://resolve?domain=" & + "*\n\n[Tap to View](https://t.me/" & b.username & - "&start=" & + "?start=" & filehash & ")", replyMarkup = replymark,