Capitalize on inline

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-04-17 19:55:15 +05:30
parent d939f6942e
commit af6d4d68ab
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -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)