Skip to content

Commit

Permalink
fix typos, closes #36
Browse files Browse the repository at this point in the history
  • Loading branch information
ba0f3 committed Jun 9, 2019
1 parent d7a4567 commit ea2ad4d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion telebot.nimble
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version = "0.6.0"
version = "0.6.1"
author = "Huy Doan"
description = "Async Telegram Bot API Client"
license = "MIT"
Expand Down
4 changes: 2 additions & 2 deletions telebot/api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ proc restrictChatMember*(b: TeleBot, chatId: string, userId: int, untilDate = 0,
let res = await makeRequest(b, endpoint % b.token, data)
result = res.toBool

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.} =
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.} =
END_POINT("promoteChatMember")
var data = newMultipartData()
data["chat_id"] = chatId
Expand All @@ -250,7 +250,7 @@ proc promoteChatMember*(b: TeleBot, chatId: string, userId: int, canChangeInfo =
data["can_restrict_members"] = "true"
if canPinMessages:
data["can_pin_messages"] = "true"
if canPromoteMebers:
if canPromoteMembers:
data["can_promote_members"] = "true"
let res = await makeRequest(b, endpoint % b.token, data)
result = res.toBool
Expand Down
2 changes: 1 addition & 1 deletion telebot/types.nim
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ type
canInviteUsers*: Option[bool]
canRestrictMembers*: Option[bool]
canPinMessages*: Option[bool]
canPromoteMebers*: Option[bool]
canPromoteMembers*: Option[bool]
isMember*: Option[bool]
canSendMessages*: Option[bool]
canSendMediaMessages*: Option[bool]
Expand Down

0 comments on commit ea2ad4d

Please sign in to comment.