#some change
This commit is contained in:
parent
8510948657
commit
dbeae233d5
8
bot.lua
8
bot.lua
@ -346,12 +346,10 @@ elseif is_admin(msg) and msg.reply_to_message and msg.text == "/id" then
|
|||||||
sendMessage(msg.chat.id,E)
|
sendMessage(msg.chat.id,E)
|
||||||
|
|
||||||
elseif is_admin(msg) and msg.text == "/broadcast" then
|
elseif is_admin(msg) and msg.text == "/broadcast" then
|
||||||
if add.broadcast == nil then
|
|
||||||
--add.broadcast = {}
|
|
||||||
add.broadcast[msg.from.id] = "true"
|
add.broadcast[msg.from.id] = "true"
|
||||||
else
|
|
||||||
add.broadcast[msg.from.id] = "true"
|
save_data('mico.db', add)
|
||||||
end
|
|
||||||
|
|
||||||
elseif 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)
|
table.insert(add.id,msg.from.id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user