Naltox / telegram-node-bot

Node module for creating Telegram bots.
MIT License
721 stars 143 forks source link

/start === /startttttt #70

Closed sergeykvalarstudios closed 8 years ago

sergeykvalarstudios commented 8 years ago

Hi! If I listen "/start" command tg.router.when(['/start'] and user sent any word started on "/start", for example "/starttttdds", it will be processed like a "/start"

Naltox commented 8 years ago

Will fix that, thanks!

Naltox commented 8 years ago

@sergeykvalarstudios Hey, i have thought about that, there is a problem when we have command with args, i mean if user send /start some args here may be you want that args.

VitaliyR commented 8 years ago

@Naltox maybe we should refactor that _testCommand method? Because it is really weird to substr a string and removing route command from it and think that other things which are left are arguments.