Skip to content

Commit

Permalink
Fix ref type marshalling, close #91
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Aug 20, 2023
1 parent 3fd1fc4 commit 7b512cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/telebot/private/utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,8 @@ proc makeRequest*(b: Telebot, `method`: string, data: MultipartData = nil, timeo

proc uploadInputMedia*(p: var MultipartData, m: InputMedia)

proc `$`*[T](k: ref T): string {.inline.} = marshal(k, result)

proc addData*(p: var MultipartData, name: string, content: auto) {.inline.} =
when content is InputFileOrString:
if content.startsWith("file://"):
Expand Down
2 changes: 1 addition & 1 deletion telebot.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "2023.08.07"
version = "2023.08.20"
author = "Huy Doan"
description = "Async Telegram Bot API Client"
license = "MIT"
Expand Down

0 comments on commit 7b512cb

Please sign in to comment.