From 4b55b1575c27d8072dfcc1afb32cf412e24587f3 Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sat, 12 Nov 2022 13:05:32 +0530 Subject: [PATCH] Use proper fields for sendPhoto and sendDocument Signed-off-by: baalajimaestro --- src/nim_censor_bot.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nim_censor_bot.nim b/src/nim_censor_bot.nim index 08a4232..eeccc68 100644 --- a/src/nim_censor_bot.nim +++ b/src/nim_censor_bot.nim @@ -129,9 +129,9 @@ proc startHandler(b: Telebot, c: Command): Future[bool] {.gcsafe, async.} = discard await b.sendMediaGroup($c.message.chat.id, media=inputmedia) else: if TempData[0].ftype == "photo": - discard await b.sendPhoto(c.message.chat.id, TempData[0].fileid, TempData[0].caption) + discard await b.sendPhoto(chatId=c.message.chat.id, photo=TempData[0].fileid, caption=TempData[0].caption) elif TempData[0].ftype == "document": - discard await b.sendDocument(c.message.chat.id, TempData[0].fileid, TempData[0].caption) + discard await b.sendDocument(c.message.chat.id, TempData[0].fileid, caption=TempData[0].caption) elif TempData[0].ftype == "video": discard await b.sendVideo(c.message.chat.id, TempData[0].fileid, caption=TempData[0].caption) elif TempData[0].ftype == "videoNote":