Skip to content

Commit ea2ad4d

Browse files
committed
fix typos, closes #36
1 parent d7a4567 commit ea2ad4d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

telebot.nimble

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

telebot/api.nim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ proc restrictChatMember*(b: TeleBot, chatId: string, userId: int, untilDate = 0,
231231
let res = await makeRequest(b, endpoint % b.token, data)
232232
result = res.toBool
233233

234-
proc promoteChatMember*(b: TeleBot, chatId: string, userId: int, canChangeInfo = false, canPostMessages = false, canEditMessages = false, canDeleteMessages = false, canInviteUsers = false, canRestrictMembers = false, canPinMessages = false, canPromoteMebers = false): Future[bool] {.async.} =
234+
proc promoteChatMember*(b: TeleBot, chatId: string, userId: int, canChangeInfo = false, canPostMessages = false, canEditMessages = false, canDeleteMessages = false, canInviteUsers = false, canRestrictMembers = false, canPinMessages = false, canPromoteMembers = false): Future[bool] {.async.} =
235235
END_POINT("promoteChatMember")
236236
var data = newMultipartData()
237237
data["chat_id"] = chatId
@@ -250,7 +250,7 @@ proc promoteChatMember*(b: TeleBot, chatId: string, userId: int, canChangeInfo =
250250
data["can_restrict_members"] = "true"
251251
if canPinMessages:
252252
data["can_pin_messages"] = "true"
253-
if canPromoteMebers:
253+
if canPromoteMembers:
254254
data["can_promote_members"] = "true"
255255
let res = await makeRequest(b, endpoint % b.token, data)
256256
result = res.toBool

telebot/types.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ type
260260
canInviteUsers*: Option[bool]
261261
canRestrictMembers*: Option[bool]
262262
canPinMessages*: Option[bool]
263-
canPromoteMebers*: Option[bool]
263+
canPromoteMembers*: Option[bool]
264264
isMember*: Option[bool]
265265
canSendMessages*: Option[bool]
266266
canSendMediaMessages*: Option[bool]

0 commit comments

Comments
 (0)