Skip to content

Commit

Permalink
Merge pull request #66 from WeebNetsu/patch-1
Browse files Browse the repository at this point in the history
Removed echos from setting bot commands
  • Loading branch information
ba0f3 authored Nov 29, 2021
2 parents 5a31bd3 + 4e5ae7e commit 22bbb3d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/telebot/private/api.nim
Original file line number Diff line number Diff line change
Expand Up @@ -999,8 +999,6 @@ proc setMyCommands*(b: TeleBot, commands: seq[BotCommand], scope = COMMAND_SCOPE
marshal(commands, json)
data["commands"] = json

echo json

case scope
of COMMAND_SCOPE_DEFAULT:
discard
Expand All @@ -1011,7 +1009,6 @@ proc setMyCommands*(b: TeleBot, commands: seq[BotCommand], scope = COMMAND_SCOPE
of COMMAND_SCOPE_CHAT_MEMBER:
json = "{\"type\": \"$#\", \"chat_id\": \"$#\", \"user_id\": $#}" % [$scope, $chatId, $userId]

echo json
if scope != COMMAND_SCOPE_DEFAULT:
data["scope"] = json

Expand Down

0 comments on commit 22bbb3d

Please sign in to comment.