Skip to content

Commit 7b512cb

Browse files
committed
Fix ref type marshalling, close #91
1 parent 3fd1fc4 commit 7b512cb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/telebot/private/utils.nim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,8 @@ proc makeRequest*(b: Telebot, `method`: string, data: MultipartData = nil, timeo
223223

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

226+
proc `$`*[T](k: ref T): string {.inline.} = marshal(k, result)
227+
226228
proc addData*(p: var MultipartData, name: string, content: auto) {.inline.} =
227229
when content is InputFileOrString:
228230
if content.startsWith("file://"):

telebot.nimble

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "2023.08.07"
1+
version = "2023.08.20"
22
author = "Huy Doan"
33
description = "Async Telegram Bot API Client"
44
license = "MIT"

0 commit comments

Comments
 (0)