From 3939ad50698fd62db2731db60157d7daf0bf1d9c Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sat, 23 Apr 2022 18:35:03 +0530 Subject: [PATCH] Use NSFW instead of Censored in output We should be clear to tell users that the media is nsfw and its fully at their own risk 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 28cf9dc..6c6d1bc 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -195,9 +195,9 @@ proc inlineHandler(b: Telebot, u: InlineQuery): Future[bool]{.async.} = ftype = "Album" elif len(TempData) == 1: ftype = TempData[0].ftype - res.title = "Censored " & capitalizeAscii(ftype) + res.title = "NSFW " & capitalizeAscii(ftype) res.inputMessageContent = InputMessageContent(kind: TextMessage, - messageText:"*Censored " & + messageText:"*NSFW " & capitalizeAscii(ftype) & "*\n\n[Tap to View](tg://resolve?domain=" & b.username & "&start=" & @@ -256,7 +256,7 @@ proc updateHandler(b: Telebot, u: Update): Future[bool] {.async, gcsafe.} = var replybutton = InlineKeyboardButton(text: "Share", switchInlineQuery: some(filehash)) let replymark = newInlineKeyboardMarkup(@[replybutton]) discard await b.sendMessage(response.chat.id, - "*Censored " & + "*NSFW " & "Album" & "*\n\n[Tap to View](tg://resolve?domain=" & b.username & @@ -279,7 +279,7 @@ proc updateHandler(b: Telebot, u: Update): Future[bool] {.async, gcsafe.} = var replybutton = InlineKeyboardButton(text: "Share", switchInlineQuery: some(filehash)) let replymark = newInlineKeyboardMarkup(@[replybutton]) discard await b.sendMessage(response.chat.id, - "*Censored " & + "*NSFW " & capitalizeAscii(ftype) & "*\n\n[Tap to View](tg://resolve?domain=" & b.username &