File tree 3 files changed +10
-9
lines changed
3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 1
- version = " 0.5.7.3 "
1
+ version = " 0.5.7.4 "
2
2
author = " Huy Doan"
3
3
description = " Async Telegram Bot API Client"
4
4
license = " MIT"
Original file line number Diff line number Diff line change 591
591
secret* : string
592
592
593
593
PassportData * = object of TelegramObject
594
- data: seq [EncryptedPassportElement ]
595
- credentials: EncryptedCredentials
594
+ data* : seq [EncryptedPassportElement ]
595
+ credentials* : EncryptedCredentials
596
596
597
597
PassportElementError = ref object of TelegramObject
598
598
source* : string
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ proc getCommands*(update: Update): StringTableRef =
27
27
var entities = message.entities.get ()
28
28
for entity in entities:
29
29
if entity.kind == " bot_command" :
30
- var
30
+ var
31
31
messageText = message.text.get ()
32
32
offset = entity.offset
33
33
length = entity.length
@@ -236,13 +236,14 @@ macro genInputMedia*(mediaType: untyped): untyped =
236
236
237
237
result = quote do :
238
238
proc `funcName` * (media: string ; caption= " " ; parseMode= " " ): `objName` =
239
- new (result )
240
- result .kind = `kind`
241
- result .media = media
239
+ var inputMedia = new (`objName` )
240
+ inputMedia .kind = `kind`
241
+ inputMedia .media = media
242
242
if caption.len > 0 :
243
- result .caption = some (caption)
243
+ inputMedia .caption = some (caption)
244
244
if parseMode.len > 0 :
245
- result .parseMode = some (parseMode)
245
+ inputMedia.parseMode = some (parseMode)
246
+ return inputMedia
246
247
247
248
macro magic * (head, body: untyped ): untyped =
248
249
result = newStmtList ()
You can’t perform that action at this time.
0 commit comments