Skip to content

Commit 1992a55

Browse files
authored
Merge pull request #9 from Imperator26/master
Fixes some optional parameters
2 parents 515e303 + efedc45 commit 1992a55

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

telebot/types.nim

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ type
105105

106106
File* = object of TelegramObject
107107
fileId*: string
108-
fileSize*: int
109-
filePath*: string
108+
fileSize*: Option[int]
109+
filePath*: Option[string]
110110

111111
KeyboardButton* = object
112112
text*: string
@@ -115,12 +115,12 @@ type
115115

116116
InlineKeyboardButton* = object
117117
text*: string
118-
url*: string
119-
callbackData*: string
120-
switchInlineQuery*: string
121-
switchInlineQueryCurrentChat*: string
122-
callbackGame*: CallbackGame
123-
pay*: bool
118+
url*: Option[string]
119+
callbackData*: Option[string]
120+
switchInlineQuery*: Option[string]
121+
switchInlineQueryCurrentChat*: Option[string]
122+
callbackGame*: Option[CallbackGame]
123+
pay*: Option[bool]
124124

125125
KeyboardKind* = enum
126126
kReplyKeyboardMarkup
@@ -288,7 +288,7 @@ type
288288
invoicePayload*: string
289289
shippingOptionId*: Option[string]
290290
orderInfo*: Option[OrderInfo]
291-
291+
292292
#------------------
293293
# Inline Query
294294
#------------------

0 commit comments

Comments
 (0)