diff --git a/scripts/telegram.coffee b/scripts/telegram.coffee index ffc5b4f..9cf91d4 100644 --- a/scripts/telegram.coffee +++ b/scripts/telegram.coffee @@ -33,7 +33,7 @@ module.exports = (robot) -> user_info = (command, callback) -> run_command command, (data) -> match = (data.join '\n').match /// - User\ (\w+(\ ?\w+)+) # contact name + User\ (\w+(\ ?\w+)*) # contact name (\ @(\w+))? # telegram username (\ \(\#(\d+)\))? # telegram id [\s\S]+phone:\ (\d+)? # phone number