Capitalize on inline
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
d939f6942e
commit
af6d4d68ab
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue