ba0f3 / telebot.nim

Async Telegram Bot API Client implement in @Nim-Lang
MIT License
165 stars 24 forks source link

Command with arguments #43

Closed encryptize closed 5 years ago

encryptize commented 5 years ago

How I can make a command with arguments? I mean example /help command. I want it to detect an argument and execute another action after typing such an example command rather than after typing /help.

ba0f3 commented 5 years ago

params are included in Command as a string https://github.com/ba0f3/telebot.nim/blob/master/telebot/types.nim#L27