Use proper fields for sendPhoto and sendDocument
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
993b7a78a9
commit
4b55b1575c
1 changed files with 2 additions and 2 deletions
|
@ -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":
|
||||
|
|
Loading…
Reference in a new issue