From 2563ca4cacb3290bfaa7591cba091c404037af56 Mon Sep 17 00:00:00 2001 From: mohamadkhoshnava Date: Tue, 19 Apr 2016 11:31:18 +0430 Subject: [PATCH] Update bot.lua --- bot.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bot.lua b/bot.lua index 034ba47..5836764 100644 --- a/bot.lua +++ b/bot.lua @@ -333,8 +333,9 @@ local matches = {string.match(msg.text,('/id (.*)'))} local input = get_word(matches[1]) id = resolve_username(input) sendMessage(msg.chat.id,id) +end -if msg.text == "/start" and not is_add(msg) then +elseif msg.text == "/start" and not is_add(msg) then table.insert(add.id,msg.from.id) print("adding.....") local user = ""