From af6d4d68abfb9479e49fea1e7475da572c968aeb Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 17 Apr 2022 19:55:15 +0530 Subject: [PATCH] Capitalize on inline Signed-off-by: baalajimaestro --- src/nim_censor_bot.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nim_censor_bot.nim b/src/nim_censor_bot.nim index b80e4a8..7409a04 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -163,7 +163,7 @@ proc inlineHandler(b: Telebot, u: InlineQuery): Future[bool]{.async.} = ftype = "Album" elif len(TempData) == 1: ftype = TempData[0].ftype - res.title = "Censored " & ftype + res.title = "Censored " & capitalizeAscii(ftype) res.inputMessageContent = InputMessageContent(kind: TextMessage, messageText:"*Censored " & capitalizeAscii(ftype) & "*\n\n[Tap to View](tg://resolve?domain=" & b.username & "&start=" & u.query & ")", parseMode: some("Markdown")).some results.add(res) discard await b.answerInlineQuery(u.id, results)