Beautify the message sent
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
e8efd87f71
commit
eb7f3b76c6
1 changed files with 2 additions and 2 deletions
|
@ -146,7 +146,7 @@ proc updateHandler(b: Telebot, u: Update): Future[bool] {.async, gcsafe.} =
|
||||||
var CensoredRow = NewCensoredData(ftype, filehash, fileid, epochTime(), fcaption)
|
var CensoredRow = NewCensoredData(ftype, filehash, fileid, epochTime(), fcaption)
|
||||||
with dbConn:
|
with dbConn:
|
||||||
insert CensoredRow
|
insert CensoredRow
|
||||||
discard await b.sendMessage(response.chat.id, "Censored --> " & "tg://resolve?domain=botbotbotnotabot&start=" & filehash)
|
discard await b.sendMessage(response.chat.id, "*Censored " & capitalizeAscii(ftype) & "*\n\n[Tap to View](tg://resolve?domain=" & b.username & "&start=" & filehash & ")", parseMode = "Markdown")
|
||||||
else:
|
else:
|
||||||
let filehash = GroupMedia[parseInt(response.mediaGroupId.get)]
|
let filehash = GroupMedia[parseInt(response.mediaGroupId.get)]
|
||||||
var CensoredRow = NewCensoredData(ftype, filehash, fileid, epochTime(), fcaption)
|
var CensoredRow = NewCensoredData(ftype, filehash, fileid, epochTime(), fcaption)
|
||||||
|
@ -158,7 +158,7 @@ proc updateHandler(b: Telebot, u: Update): Future[bool] {.async, gcsafe.} =
|
||||||
var CensoredRow = NewCensoredData(ftype, filehash, fileid, epochTime(), fcaption)
|
var CensoredRow = NewCensoredData(ftype, filehash, fileid, epochTime(), fcaption)
|
||||||
with dbConn:
|
with dbConn:
|
||||||
insert CensoredRow
|
insert CensoredRow
|
||||||
discard await b.sendMessage(response.chat.id, "Censored --> " & "tg://resolve?domain=botbotbotnotabot&start=" & filehash)
|
discard await b.sendMessage(response.chat.id, "*Censored " & capitalizeAscii(ftype) & "*\n\n[Tap to View](tg://resolve?domain=" & b.username & "&start=" & filehash & ")", parseMode = "Markdown")
|
||||||
OldDataCleanup()
|
OldDataCleanup()
|
||||||
|
|
||||||
let bot = newTeleBot(getEnv("TELEGRAM_TOKEN"))
|
let bot = newTeleBot(getEnv("TELEGRAM_TOKEN"))
|
||||||
|
|
Loading…
Reference in a new issue