Update bot.lua
This commit is contained in:
parent
a78d913fbb
commit
69607d7b5c
10
bot.lua
10
bot.lua
@ -6,8 +6,8 @@ JSON = require('dkjson')
|
|||||||
HTTPS = require('ssl.https')
|
HTTPS = require('ssl.https')
|
||||||
dofile('utilities.lua')
|
dofile('utilities.lua')
|
||||||
----config----
|
----config----
|
||||||
local bot_api_key = "145907392:AAFjCN-_5ChWZuGvp6R2VbdbKZ3g6nK4X8U"
|
local bot_api_key = "" --BOT TOKEN تو کن ربات خود را در اینجا قرار دهید
|
||||||
local You = 188548712
|
local You = 188548712 --ID ADMIN ایدی خود را اینجا قرار دهید
|
||||||
local BASE_URL = "https://api.telegram.org/bot"..bot_api_key
|
local BASE_URL = "https://api.telegram.org/bot"..bot_api_key
|
||||||
local BASE_FOLDER = ""
|
local BASE_FOLDER = ""
|
||||||
local start = [[ ]]
|
local start = [[ ]]
|
||||||
@ -34,7 +34,7 @@ local help = [[
|
|||||||
ایدی
|
ایدی
|
||||||
➖➖➖➖➖➖➖➖➖➖➖
|
➖➖➖➖➖➖➖➖➖➖➖
|
||||||
M.KH @cruel0098
|
M.KH @cruel0098
|
||||||
]]--ة
|
]]--
|
||||||
-------
|
-------
|
||||||
|
|
||||||
----utilites----
|
----utilites----
|
||||||
@ -363,7 +363,7 @@ user = bot.username
|
|||||||
else
|
else
|
||||||
user = msg.from.username
|
user = msg.from.username
|
||||||
end
|
end
|
||||||
local text = " سلام ["..msg.from.first_name.."](www.telegram.me/"..user..")"
|
local text = "سلام ["..msg.from.first_name.."](www.telegram.me/"..user..")\n\n[ربات خود را بسازید](http://opizo.com/3AGyRT)"
|
||||||
sendMessage(msg.chat.id,text.."\n"..start,true,false,true)
|
sendMessage(msg.chat.id,text.."\n"..start,true,false,true)
|
||||||
elseif msg.text == "/start" and is_add(msg) then
|
elseif msg.text == "/start" and is_add(msg) then
|
||||||
print(#add.id)
|
print(#add.id)
|
||||||
@ -373,7 +373,7 @@ user = bot.username
|
|||||||
else
|
else
|
||||||
user = msg.from.username
|
user = msg.from.username
|
||||||
end
|
end
|
||||||
local text = "سلام ["..msg.from.first_name.."](www.telegram.me/"..user..")"
|
local text = "سلام ["..msg.from.first_name.."](www.telegram.me/"..user..")\n\n[ربات خود را بسازید](http://opizo.com/3AGyRT)"
|
||||||
sendMessage(msg.chat.id,text.."\n"..start,true,false,true)
|
sendMessage(msg.chat.id,text.."\n"..start,true,false,true)
|
||||||
elseif is_admin(msg) and msg.text == "/users" then
|
elseif is_admin(msg) and msg.text == "/users" then
|
||||||
local r = tostring(#add.id)
|
local r = tostring(#add.id)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user