Skip to content

Bot #2

Open
Open

Description

@badraaan

]]
local function iBoss(msg,MsgText)

if msg.forward_info_ then return false end

local MOTGBOT = modbot(msg)
if MOTGBOT then return MOTGBOT end if msg.type ~= 'pv' then if MsgText[1] == "تفعيل" and not MsgText[2] then
return modadd(msg)
end

if MsgText[1] == "تعطيل" and not MsgText[2] then
if not msg.SudoUser then return '🛠¦ أنـت لـسـت الـمـطـور ⚙️'end
if not redis:get(boss..'group:add'..msg.chat_id_) then return '🛠¦ المجموعه بالتأكيد ✓️ تم تعطيلها' end
rem_data_group(msg.chat_id_)
return '📛¦ تـم تـعـطـيـل الـمـجـمـوعـه ⚠️'
end
end

if msg.type ~= 'pv' and msg.GroupActive then

if MsgText[1] == "ايدي" or MsgText[1]:lower() == "id" then
if not MsgText[2] and not msg.reply_id then
if redis:get(boss..'lock_id'..msg.chat_id_) then
GetUserID(msg.sender_user_id_,function(arg,data)
local msgs = redis:get(boss..'msgs:'..msg.sender_user_id_..':'..msg.chat_id_) or 1
if data.username_ then UserNameID = "🎫¦ مـعرفك •⊱ @"..data.username_.." ⊰•\n" else UserNameID = "" end
if data.last_name_ then Name = data.first_name_ .." "..data.last_name_ else Name = data.first_name_ end
local Namei = FlterName(data,20)
if data.status_.ID == "UserStatusEmpty" then
sendMsg(arg.chat_id_,data.id_,
'📛¦ لا يمكنني عرض صورة بروفايلك لانك قمت بحظر البوت ... !\n\n'
..'👤¦ أســمـك •⊱ { '..Namei..' } ⊰•\n'
..'['..UserNameID..']'
..'🏷¦ ايديــك •⊱ {'..data.id_..'} ⊰•\n\n'
..'📮¦ رتبتـــك •⊱ '..arg.TheRank..' ⊰•\n'
..'⭐️¦ تفاعـلك » '..Get_Ttl(msgs)..'\n'
..'💬¦ رسائلك •⊱ {'..msgs..'} ⊰•\n➖')
else
GetPhotoUser(data.id_,function(arg,data)
if data.photos_ and data.photos_[0] then
sendPhoto(arg.chat_id_,arg.id_,data.photos_[0].sizes_[1].photo_.persistent_id_,
'👤¦ أســمـك •⊱ { '..arg.Namei..' } ⊰•\n'
..'🎟¦ ايديــك •⊱ {'..arg.sender_user_id_..'} ⊰•\n'
..arg.UserNameID
..'📡¦ رتبتـــك •⊱ '..arg.TheRank..' ⊰•\n'
..'⭐️¦ تفاعـلك •⊱ '..Get_Ttl(arg.msgs)..'⊰•\n'
..'💬¦ رسائلك •⊱ {'..arg.msgs..'} ⊰•\n➖'
,dl_cb,nil)
else
sendMsg(arg.chat_id_,arg.id_,
'🚸¦ لا يوجد صوره في بروفايلك ... !\n\n'
..'👤¦ أســمـك •⊱ { '..arg.Namei..' } ⊰•\n'
..'['..arg.UserNameID..']'
..'🏷¦ ايديــك •⊱ {'..arg.sender_user_id_..'} ⊰•\n\n'
..'📮¦ رتبتـــك •⊱ '..arg.TheRank..' ⊰•\n'
..'⭐️¦ تفاعـلك » '..Get_Ttl(arg.msgs)..'\n'
..'💬¦ رسائلك •⊱ {'..arg.msgs..'} ⊰•\n➖')
end
end,{chat_id_=arg.chat_id_,id_=arg.id_,TheRank=arg.TheRank,sender_user_id_=data.id_,msgs=msgs,Namei=Namei,UserNameID=UserNameID})
end
end,{chat_id_=msg.chat_id_,id_=msg.id_,TheRank=msg.TheRank})
end
end
if msg.reply_id and not MsgText[2] then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,"🧟‍♂¦ آضـغط على آلآيدي ليتم آلنسـخ\n\n "..USERNAME.." ~⪼ { "..arg.UserID.." }",37,USERCAR)
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
sendMsg(arg.ChatID,arg.MsgID,"🧟‍♂¦ آضـغط على آلآيدي ليتم آلنسـخ\n\n "..UserName.." ~⪼ ( "..UserID.." )")
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
end
return false
end

if MsgText[1] == "المجموعه" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
GetFullChat(msg.chat_id_,function(arg,data)
local GroupName = (redis:get(boss..'group:name'..arg.ChatID) or '')
redis:set(boss..'linkGroup'..arg.ChatID,(data.invite_link_ or ""))
sendMsg(arg.ChatID,arg.MsgID,
"ـ •⊱ { مـعـلومـات الـمـجـموعـه } ⊰•\n\n"
.."👥¦ عدد الاعـضـاء •⊱ { "..data.member_count_.." } ⊰•"
.."\n📛¦ عدد المحظـوريـن •⊱ { "..data.kicked_count_.." } ⊰•"
.."\n🗣¦ عدد الادمـنـيـه •⊱ { "..data.administrator_count_.." } ⊰•"
.."\n🔚¦ الايــدي •⊱ { "..arg.ChatID.." } ⊰•"
.."\n\nـ •⊱ { ["..FlterName(GroupName).."]("..(data.invite_link_ or "")..") } ⊰•\n"
)
end,{ChatID=msg.chat_id_,MsgID=msg.id_})
return false
end

if MsgText[1] == "تثبيت" and msg.reply_id then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
local GroupID = msg.chat_id_:gsub('-100','')
if not msg.Director and redis:get(boss..'lock_pin'..msg.chat_id_) then
return "لا يمكنك التثبيت الامر مقفول من قبل الاداره"
else
tdcli_function({
ID="PinChannelMessage",
channel_id_ = GroupID,
message_id_ = msg.reply_id,
disable_notification_ = 1},
function(arg,data)
if data.ID == "Ok" then
redis:set(boss..":MsgIDPin:"..arg.ChatID,arg.reply_id)
sendMsg(arg.ChatID,arg.MsgID,"🙋🏼‍♂️¦ أهلا عزيزي "..arg.TheRankCmd.." \n📌¦ تم تثبيت الرساله \n✓")
elseif data.ID == "Error" and data.code_ == 6 then
sendMsg(arg.ChatID,arg.MsgID,'📛¦ عذرا لا يمكنني التثبيت .\n🎟¦ لست مشرف او لا املك صلاحيه التثبيت \n ❕')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,reply_id=msg.reply_id,TheRankCmd=msg.TheRankCmd})
end
return false
end

if MsgText[1] == "الغاء التثبيت" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not msg.Director and redis:get(boss..'lock_pin'..msg.chat_id_) then return "لا يمكنك الغاء التثبيت الامر مقفول من قبل الاداره" end
tdcli_function({ID="UnpinChannelMessage",channel_id_ = msg.chat_id_:gsub('-100','')},function(arg,data)
if data.ID == "Ok" then
sendMsg(arg.ChatID,arg.MsgID,"🙋🏼‍♂️¦ أهلا عزيزي "..arg.TheRankCmd.." \n💬¦ تم الغاء تثبيت الرساله \n✓")
elseif data.ID == "Error" and data.code_ == 6 then
sendMsg(arg.ChatID,arg.MsgID,'📛¦ عذرا لا يمكنني الغاء التثبيت .\n🎟¦ لست مشرف او لا املك صلاحيه التثبيت \n ❕')
elseif data.ID == "Error" and data.code_ == 400 then
sendMsg(arg.ChatID,arg.MsgID,'📛¦ عذرا عزيزي '..arg.TheRankCmd..' .\n🎟¦ لا توجد رساله مثبته لاقوم بازالتها \n ❕')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,TheRankCmd=msg.TheRankCmd})
return false
end

if MsgText[1] == "تقييد" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then -- By Replay
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكن تقييد البوت \n📛") end
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد الادمن\n🛠")
end
GetChatMember(arg.ChatID,UserID,function(arg,data)
if data.status_.ID == "ChatMemberStatusMember" then
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم تقييد آلعضـو بنجآح \n✓️',12,utf8.len(USERNAME))
end,{ChatID=arg.ChatID,UserID=arg.UserID,MsgID=arg.MsgID})
Restrict(arg.ChatID,arg.UserID,1)
elseif data.status
.ID == "ChatMemberStatusLeft" then
sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنني تقيد العضو لانه مغادر المجموعة \n🛠")
else
sendMsg(arg.ChatIDarg.z,arg.MsgID,"👤¦ لا يمكنني تقييد المشرف\n🛠")
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id_,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then -- By Username
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
if data.type_.ID == "ChannelChatInfo" then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا هذا معرف قناة وليس حساب \n📛") end
local UserID = data.id_
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تقييد الادمن\n🛠")
end
GetChatMember(arg.ChatID,our_id,function(arg,data)
if data.status_.ID == "ChatMemberStatusEditor" then
GetChatMember(arg.ChatID,arg.UserID,function(arg,data)
if data.status_.ID == "ChatMemberStatusMember" then
Restrict(arg.ChatID,arg.UserID,1)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..arg.UserName..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم تقييد آلعضـو بنجآح \n✓️')
else
sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني تقييد العضو .\n🎟* لانه مشرف في المجموعه \n ❕')
end
end,{ChatID=arg.ChatID,MsgID=arg.MsgID,UserName=arg.UserName,UserID=arg.UserID})
else
sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني تقييد العضو .\n🎟* لانني لست مشرف في المجموعه \n ❕')
end
end,{ChatID=arg.ChatID,MsgID=arg.MsgID,UserName=arg.UserName,UserID=UserID})
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then -- By UserID
UserID = MsgText[2]
if UserID == our_id then return sendMsg(msg.chat_id_,msg.id_,"👤¦ لا يمكن تقييد البوت \n📛") end
if UserID == our_id then
return sendMsg(msg.chat_id_,msg.id_,"👤¦ لا يمكنك تقييد البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(msg.chat_id_,msg.id_,"👤¦ لا يمكنك تقييد المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(msg.chat_id_,msg.id_,"👤¦ لا يمكنك تقييد المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..msg.chat_id_,UserID) then
return sendMsg(msg.chat_id_,msg.id_,"👤¦ لا يمكنك تقييد المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..msg.chat_id_,UserID) then
return sendMsg(msg.chat_id_,msg.id_,"👤¦ لا يمكنك تقييد المدير\n🛠")
elseif redis:sismember(boss..'admins:'..msg.chat_id_,UserID) then
return sendMsg(msg.chat_id_,msg.id_,"👤¦ لا يمكنك تقييد الادمن\n🛠")
end
GetUserID(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد حساب بهذا الايدي \n❕") end
if data.username_ then
UserName = '@'..data.username_
else
UserName = FlterName(data.first_name_..' '..(data.last_name_ or ""),20)
end
if data.id_ == our_id then
return sendMsg(ChatID,MsgID,"📛¦ لا يمكنك تقييد البوت \n❗️ ")
end
GetChatMember(arg.ChatID,our_id,function(arg,data)
if data.status_.ID ~= "ChatMemberStatusEditor" then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني تقييد العضو .\n🎟* لانني لست مشرف في المجموعه \n ❕')
end
Restrict(arg.ChatID,arg.UserID,1)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..arg.UserName..' \n🎫¦ الايدي » ('..arg.UserID..')\n🛠¦ تم تقييد آلعضـو بنجآح \n✓️')
end,{ChatID=arg.ChatID,MsgID=arg.MsgID,UserName=UserName,UserID=data.id_})
end,{ChatID=msg.chat_id_,MsgID=msg.id_})
end
return false
end

if MsgText[1] == "فك التقييد" or MsgText[1] == "فك تقييد" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
Restrict(arg.ChatID,UserID,2)
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
return SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم فگ تقييد آلعضـو بنجآح \n✓️',12,utf8.len(USERNAME))
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then -- BY Username
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
if data.type_.ID == "ChannelChatInfo" then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا هذا معرف قناة وليس حساب \n📛") end
local UserID = data.id_
GetChatMember(arg.ChatID,our_id,function(arg,data)
if data.status_.ID ~= "ChatMemberStatusEditor" then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني تقييد العضو .\n🎟* لانني لست مشرف في المجموعه \n ❕')
end
Restrict(arg.ChatID,arg.UserID,2)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..arg.UserName..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم فك تقييد آلعضـو بنجآح \n✓️')
end,{ChatID=arg.ChatID,MsgID=arg.MsgID,UserName=arg.UserName,UserID=UserID})
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})

elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد حساب بهذا الايدي \n❕") end
UserName = ResolveUserName(data)
if data.id_ == our_id then
return sendMsg(ChatID,MsgID,"📛¦ البوت ليس مقييد \n❗️ ")
end
GetChatMember(arg.ChatID,our_id,function(arg,data)
if data.status_.ID ~= "ChatMemberStatusEditor" then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني قك تقييد العضو .\n🎟* لانني لست مشرف في المجموعه \n ❕')
end
Restrict(arg.ChatID,arg.UserID,2)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..arg.UserName..' \n🎫¦ الايدي » ('..arg.UserID..')\n🛠¦ تم فك تقييد آلعضـو بنجآح \n✓️')
end,{ChatID=arg.ChatID,MsgID=arg.MsgID,UserName=UserName,UserID=data.id_})
end,{ChatID=msg.chat_id_,MsgID=msg.id_})
end
return false
end

if MsgText[1] == "رفع مميز" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if redis:sismember(boss..'whitelist:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد عضو مميز \n✓️',12,utf8.len(USERNAME))
else
redis:hset(boss..'username:'..arg.UserID,'username',USERNAME)
redis:sadd(boss..'whitelist:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تمت ترقيته ليصبح عضو مميز \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then --BY USERNAME
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
if data.type_.user_ and data.type_.user_.type_.ID == "UserTypeBot" then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لا يمكنني رفع حساب بوت \n❕") end
local UserID = data.id_
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا لا يمكنني رفع البوت \n📛")
elseif data.type_.ID == "ChannelChatInfo" then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا هذا معرف قناة وليس حساب \n📛")
end
UserName = Flter_Markdown(arg.UserName)
if redis:sismember(boss..'whitelist:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..'\n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد من عضو مميز \n✓️')
end
redis:hset(boss..'username:'..UserID,'username',UserName)
redis:sadd(boss..'whitelist:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تمت ترقيته ليصبح ضمن عضو مميز \n✓️')
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="setwhitelist"})
end
return false
end

if MsgText[1] == "تنزيل مميز" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if not redis:sismember(boss..'whitelist:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد ليس عضو مميز \n✓️',12,utf8.len(USERNAME))
else
redis:srem(boss..'whitelist:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تمت تنزيله من عضو مميز \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
if not redis:sismember(boss..'whitelist:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..'\n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد ليس من عضو مميز \n✓️')
else
redis:srem(boss..'whitelist:'..arg.ChatID,UserID)
return sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تمت تنزيله من عضو مميز \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="remwhitelist"})
end
return false
end

if (MsgText[1] == "رفع المدير" or MsgText[1] == "رفع مدير" ) then
if not msg.Creator then return "📛¦ هذا الامر يخص {المطور,المنشئ} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if redis:sismember(boss..'owners:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد مدير \n✓️',12,utf8.len(USERNAME))
else
redis:hset(boss..'username:'..arg.UserID,'username',USERNAME)
redis:sadd(boss..'owners:'..arg.ChatID,UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تمت ترقيته ليصبح مدير \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
if data.type_.user_ and data.type_.user_.type_.ID == "UserTypeBot" then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لا يمكنني رفع حساب بوت \n❕") end
local UserID = data.id_
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا لا يمكنني رفع البوت \n📛")
elseif data.type_.ID == "ChannelChatInfo" then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا هذا معرف قناة وليس حساب \n📛")
end
UserName = Flter_Markdown(arg.UserName)
if redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..'\n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد مدير \n✓️')
else
redis:hset(boss..'username:'..UserID, 'username',UserName)
redis:sadd(boss..'owners:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تمت ترقيته ليصبح مدير \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="setowner"})
end
return false
end

if (MsgText[1] == "تنزيل المدير" or MsgText[1] == "تنزيل مدير" ) then
if not msg.Creator then return "📛¦ هذا الامر يخص {المطور,المنشئ} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if not redis:sismember(boss..'owners:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد ليس مدير \n✓️',12,utf8.len(USERNAME))
else
redis:srem(boss..'owners:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم تنزيله من المدير \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
if not redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد ليس مدير \n✓️')
else
redis:srem(boss..'owners:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم تنزيله من الاداره \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="remowner"})
end
return false
end

if (MsgText[1] == "رفع منشى" or MsgText[1] == "رفع منشئ") then
if not msg.SudoUser then return "📛¦ هذا الامر يخص {المطور,المطور الاساسي} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد منشىء \n✓️',12,utf8.len(USERNAME))
else
redis:hset(boss..'username:'..arg.UserID,'username',USERNAME)
redis:sadd(boss..':MONSHA_BOT:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تمت ترقيته ليصبح منشىء في البوت \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
if data.type_.user_ and data.type_.user_.type_.ID == "UserTypeBot" then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لا يمكنني رفع حساب بوت \n❕") end
local UserID = data.id_
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا لا يمكنني رفع البوت \n📛")
elseif data.type_.ID == "ChannelChatInfo" then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا هذا معرف قناة وليس حساب \n📛")
end
UserName = Flter_Markdown(arg.UserName)
if redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..'\n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد منشىء في البوت \n✓️')
else
redis:hset(boss..'username:'..UserID,'username',UserName)
redis:sadd(boss..':MONSHA_BOT:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تمت ترقيته ليصبح منشىء في البوت \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="setmnsha"})
end
return false
end

if (MsgText[1] == "تنزيل منشى" or MsgText[1] == "تنزيل منشئ" ) then
if not msg.SudoUser then return "📛¦ هذا الامر يخص {المطور,المطور الاساسي} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
local MsgID = arg.MsgID
local ChatID = arg.ChatID
if not data.sender_user_id_ then return sendMsg(ChatID,MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if not redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد ليس منشىء \n✓️',12,utf8.len(USERNAME))
else
redis:srem(boss..':MONSHA_BOT:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم تنزيله من المنشىء \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=ChatID,UserID=UserID,MsgID=MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
if not redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..'\n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد ليس منشىء \n✓️')
else
redis:srem(boss..':MONSHA_BOT:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تمت تنزيله من المنشىء \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="remmnsha"})
end
return false
end

if MsgText[1] == "رفع ادمن" then
if not msg.Director then return "📛¦ هذا الامر يخص {المطور,المنشئ,المدير} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if redis:sismember(boss..'admins:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد ادمن \n✓️',12,utf8.len(USERNAME))
else
redis:hset(boss..'username:'..arg.UserID,'username',USERNAME)
redis:sadd(boss..'admins:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تمت ترقيته ليصبح ادمن \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
if data.type_.user_ and data.type_.user_.type_.ID == "UserTypeBot" then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لا يمكنني رفع حساب بوت \n❕") end
local UserID = data.id_
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا لا يمكنني رفع البوت \n📛")
elseif data.type_.ID == "ChannelChatInfo" then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا هذا معرف قناة وليس حساب \n📛")
end
UserName = Flter_Markdown(arg.UserName)
if redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد ادمن \n✓️')
else
redis:hset(boss..'username:'..UserID,'username',UserName)
redis:sadd(boss..'admins:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تمت ترقيته ليصبح ادمن \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="promote"})
end
return false
end

if MsgText[1] == "تنزيل ادمن" then
if not msg.Director then return "📛¦ هذا الامر يخص {المطور,المنشئ,المدير} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك تنفيذ الامر بالرد ع رسالة البوت \n📛") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
if not redis:sismember(boss..'admins:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ انه بالتأكيد ليس ادمن \n✓️',12,utf8.len(USERNAME))
else
redis:srem(boss..'admins:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم تنزيله من الادمنيه \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
if not redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ انه بالتأكيد ليس ادمن \n✓️')
else
redis:srem(boss..'admins:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم تنزيله من الادمنيه \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="demote"})
end
return false
end

if MsgText[1] == "التفاعل" then
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
GetUserID(UserID,function(arg,data)
local USERNAME = ResolveUserName(data)
local maseegs = redis:get(boss..'msgs:'..arg.UserID..':'..arg.ChatID) or 1
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n📮¦ رسائلك » {'..maseegs..'} رسالةة\n🔖¦ التفاعل » '..Get_Ttl(maseegs)..' \n🙇🏽',12,utf8.len(USERNAME))
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
local maseegs = redis:get(boss..'msgs:'..UserID..':'..ChatID) or 1
local namei = FlterName(data.title_)
USERCAR = utf8.len(namei)
SendMention(arg.ChatID,UserID,arg.MsgID,'👤¦ العضو » '..namei..' \n📮¦ رسائلك » {'..maseegs..'} رسالةة\n🔖¦ التفاعل » '..Get_Ttl(maseegs)..' \n🙇🏽',12,utf8.len(USERNAME))
end,{ChatID=msg.chat_id_,MsgID=msg.id_})
end
return false
end

if MsgText[1] == "كشف" then
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data)
USERCAR = utf8.len(USERNAME)
local namei = data.first_name_..' '..(data.last_name_ or "")
if data.username_ then useri = '@'..data.username_ else useri = " لا يوجد " end
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'🤵🏼¦ الاسم » '..namei..'\n'
..'🎫¦ الايدي » {'..arg.UserID..'} \n'
..'🎟¦ المعرف » '..useri..'\n'
..'📮¦ الرتبه » '..Getrtba(arg.UserID,arg.ChatID)..'\n'
..'🕵🏻️‍♀️¦ نوع الكشف » بالرد\n➖',13,utf8.len(namei))
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id_,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
sendMsg(arg.ChatID,arg.MsgID,'ـ🤵🏼¦ الاسم » '..FlterName(data.title_,30)..'\n'..'🎫¦ الايدي » {'..UserID..'} \n'..'🎟¦ المعرف » '..UserName..'\n'..'🕵🏻️‍♀️¦ نوع الكشف » بالمعرف\n'..'➖')
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="whois"})
end
return false
end

if MsgText[1] == "طرد" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد الادمن\n🛠")
end
kick_user(UserID,arg.ChatID,function(arg,data)
if data.ID == "Error" and data.code_ == 400 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني حظر العضو .\n🎟¦ لانه مشرف في المجموعه \n ❕')
elseif data.ID == "Error" and data.code_ == 3 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني حظر العضو .\n🎟¦ ليس لدي صلاحيه الحظر او لست مشرف\n ❕')
end
GetUserID(arg.UserID,function(arg,data)
USERNAME = ResolveUserName(data)
redis:hset(boss..'username:'..arg.UserID,'username',USERNAME)
USERNAME = USERNAME:gsub([[_]],"")
USERCAR = utf8.len(USERNAME)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم طرد العضو \n✓️',12,utf8.len(USERNAME))
redis:sadd(boss..'banned:'..arg.ChatID,arg.UserID)
StatusLeft(arg.ChatID,arg.UserID)
end,{ChatID=arg.ChatID,UserID=arg.UserID,MsgID=arg.MsgID})
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)

if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك طرد الادمن\n🛠")
end
kick_user(UserID,arg.ChatID,function(arg,data)
if data.ID == "Error" and data.code_ == 400 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني طرد العضو .\n🎟¦ لانه مشرف في المجموعه \n ❕')
elseif data.ID == "Error" and data.code_ == 3 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني طرد العضو .\n🎟¦ ليس لدي صلاحيه الحظر او لست مشرف\n ❕')
end
redis:hset(boss..'username:'..arg.UserID,'username',arg.UserName)
redis:sadd(boss..'banned:'..arg.ChatID,arg.UserID)
StatusLeft(arg.ChatID,arg.UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..arg.UserName..' \n🎫¦ الايدي » ('..arg.UserID..')\n🛠¦ تم طرد العضو \n✓️')
end,{ChatID=arg.ChatID,MsgID=arg.MsgID,UserName=UserName,UserID=UserID})

end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="kick"})
end
return false
end

if MsgText[1] == "حظر" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_

if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر الادمن\n🛠")
end

kick_user(UserID,arg.ChatID,function(arg,data)
if data.ID == "Error" and data.code_ == 400 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني حظر العضو .\n🎟¦ لانه مشرف في المجموعه \n ❕')
elseif data.ID == "Error" and data.code_ == 3 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني حظر العضو .\n🎟¦ ليس لدي صلاحيه الحظر او لست مشرف\n ❕')
else
GetUserID(arg.UserID,function(arg,data)
USERNAME = ResolveUserName(data):gsub([[_]],"")
redis:hset(boss..'username:'..arg.UserID,'username',USERNAME)
USERCAR = utf8.len(USERNAME)
redis:sadd(boss..'banned:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم حظره \n✓️',12,utf8.len(USERNAME))
end,{ChatID=arg.ChatID,UserID=arg.UserID,MsgID=arg.MsgID})
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id
,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)

if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك حظر الادمن\n🛠")
end
if data.type_.ID == "ChannelChatInfo" then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ عذرا هذا معرف قناة وليس حساب \n📛")
end
if redis:sismember(boss..'banned:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم بالتأكيد حظره \n✓️')
end
kick_user(UserID,arg.ChatID,function(arg,data)
if data.ID == "Error" and data.code_ == 400 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني حظر العضو .\n🎟¦ لانه مشرف في المجموعه \n ❕')
elseif data.ID == "Error" and data.code_ == 3 then
return sendMsg(arg.ChatID,arg.MsgID,'📛¦ لا يمكنني حظر العضو .\n🎟¦ ليس لدي صلاحيه الحظر او لست مشرف\n ❕')
end
redis:hset(boss..'username:'..arg.UserID, 'username',arg.UserName)
redis:sadd(boss..'banned:'..arg.ChatID,arg.UserID)
return sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..arg.UserName..' \n🎫¦ الايدي » ('..arg.UserID..')\n🛠¦ تم حظره \n✓️')
end,{ChatID=arg.ChatID,MsgID=arg.MsgID,UserName=UserName,UserID=UserID})
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="ban"})
end
return false
end

if (MsgText[1] == "الغاء الحظر" or MsgText[1] == "الغاء حظر") and msg.Admin then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لا يمكنك استخدام الامر بالرد على البوت \n❕") end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data):gsub([[]],"")
USERCAR = utf8.len(USERNAME)
GetChatMember(arg.ChatID,arg.UserID,function(arg,data)
if (data.status_.ID == "ChatMemberStatusKicked" or redis:sismember(boss..'banned:'..arg.ChatID,arg.UserID)) then
StatusLeft(arg.ChatID,arg.UserID,function(arg,data)
if data.message_ and data.message_ == "CHAT_ADMIN_REQUIRED" then
sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا البوت ليس لديه صلاحيات الحظر \n❕")
else
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..arg.USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم الغاء حظره \n✓️',12,arg.USERCAR)
end
end,{ChatID=arg.ChatID,UserID=arg.UserID,MsgID=arg.MsgID,USERNAME=arg.USERNAME,USERCAR=arg.USERCAR})
redis:srem(boss..'banned:'..arg.ChatID,arg.UserID)
else
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..arg.USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ العضو ليس محظور \n✓️',12,arg.USERCAR)
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID,USERNAME=USERNAME,USERCAR=USERCAR})
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id_,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
if data.id_ == our_id then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لا يمكنك تنفيذ الامر مع البوت \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
if not redis:sismember(boss..'banned:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم بالتأكيد الغاء حظره \n✓️')
else
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم الغاء حظره \n✓️')
end
redis:srem(boss..'banned:'..arg.ChatID,UserID)
StatusLeft(arg.ChatID,UserID)
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="uban"})
end
return false
end

if MsgText[1] == "كتم" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم الادمن\n🛠")
end
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data):gsub([[]],"")
USERCAR = utf8.len(USERNAME)
if redis:sismember(boss..'is_silent_users:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم بالتأكيد كتمه \n✓️',12,utf8.len(USERNAME))
else
redis:hset(boss..'username:'..arg.UserID,'username',USERNAME)
redis:sadd(boss..'is_silent_users:'..arg.ChatID,arg.UserID)
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم كتمه \n✓️',12,utf8.len(USERNAME))
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id_,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
if UserID == our_id then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم البوت\n🛠")
elseif UserID == SUDO_ID then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المطور الاساسي\n🛠")
elseif redis:sismember(boss..':SUDO_BOT:',UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المطور\n🛠")
elseif redis:sismember(boss..':MONSHA_BOT:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المنشئ\n🛠")
elseif redis:sismember(boss..'owners:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم المدير\n🛠")
elseif redis:sismember(boss..'admins:'..arg.ChatID,UserID) then
return sendMsg(arg.ChatID,arg.MsgID,"👤¦ لا يمكنك كتم الادمن\n🛠")
end
if redis:sismember(boss..'is_silent_users:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم بالتأكيد كتمه \n✓️')
else
redis:hset(boss..'username:'..UserID,'username',UserName)
redis:sadd(boss..'is_silent_users:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم كتمه \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="ktm"})
end
return false
end

if MsgText[1] == "الغاء الكتم" or MsgText[1] == "الغاء كتم" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
if not MsgText[2] and msg.reply_id then
GetMsgInfo(msg.chat_id_,msg.reply_id,function(arg,data)
if not data.sender_user_id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ عذرا هذا العضو ليس موجود ضمن المجموعات \n❕") end
local UserID = data.sender_user_id_
GetUserID(UserID,function(arg,data)
USERNAME = ResolveUserName(data):gsub([[]],"")
USERCAR = utf8.len(USERNAME)
if not redis:sismember(boss..'is_silent_users:'..arg.ChatID,arg.UserID) then
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم بالتاكيد الغاء كتمه \n✓️',12,utf8.len(USERNAME))
else
SendMention(arg.ChatID,arg.UserID,arg.MsgID,'👤¦ العضو » '..USERNAME..' \n🎫¦ الايدي » {'..arg.UserID..'}\n🛠¦ تم الغاء كتمه \n✓️',12,utf8.len(USERNAME))
redis:srem(boss..'is_silent_users:'..arg.ChatID,arg.UserID)
end
end,{ChatID=arg.ChatID,UserID=UserID,MsgID=arg.MsgID})
end,{ChatID=msg.chat_id_,MsgID=msg.reply_id})
elseif MsgText[2] and MsgText[2]:match('@[%a%d_]+') then
GetUserName(MsgText[2],function(arg,data)
if not data.id_ then return sendMsg(arg.ChatID,arg.MsgID,"📛¦ لآ يوجد عضـو بهہ‌‏ذآ آلمـعرف \n❕") end
local UserID = data.id_
UserName = Flter_Markdown(arg.UserName)
if not redis:sismember(boss..'is_silent_users:'..arg.ChatID,UserID) then
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم بالتأكيد الغاء كتمه \n✓️')
else
redis:srem(boss..'is_silent_users:'..arg.ChatID,UserID)
sendMsg(arg.ChatID,arg.MsgID,'👤¦ العضو » '..UserName..' \n🎫¦ الايدي » ('..UserID..')\n🛠¦ تم الغاء كتمه \n✓️')
end
end,{ChatID=msg.chat_id_,MsgID=msg.id_,UserName=MsgText[2]})
elseif MsgText[2] and MsgText[2]:match('^%d+$') then
GetUserID(MsgText[2],action_by_id,{msg=msg,cmd="unktm"})
end
return false
end

--{ Commands For locks }

if MsgText[1] == "قفل" then

if MsgText[2] == "الكل" then return lock_All(msg) end
if MsgText[2] == "الوسائط" then return lock_Media(msg) end
if MsgText[2] == "الصور بالتقييد" then return tqeed_photo(msg) end
if MsgText[2] == "الفيديو بالتقييد" then return tqeed_video(msg) end
if MsgText[2] == "المتحركه بالتقييد" then return tqeed_gif(msg) end
if MsgText[2] == "التوجيه بالتقييد" then return tqeed_fwd(msg) end
if MsgText[2] == "الروابط بالتقييد" then return tqeed_link(msg) end
if MsgText[2] == "الدردشه" then return mute_text(msg) end
if MsgText[2] == "المتحركه" then return mute_gif(msg) end
if MsgText[2] == "الصور" then return mute_photo(msg) end
if MsgText[2] == "الفيديو" then return mute_video(msg) end
if MsgText[2] == "البصمات" then return mute_voice(msg) end
if MsgText[2] == "الصوت" then return mute_audio(msg) end
if MsgText[2] == "الملصقات" then return mute_sticker(msg) end
if MsgText[2] == "الجهات" then return mute_contact(msg) end
if MsgText[2] == "التوجيه" then return mute_forward(msg) end
if MsgText[2] == "الموقع" then return mute_location(msg) end
if MsgText[2] == "الملفات" then return mute_document(msg) end
if MsgText[2] == "الاشعارات" then return mute_tgservice(msg) end
if MsgText[2] == "الانلاين" then return mute_inline(msg) end
if MsgText[2] == "الالعاب" then return mute_game(msg) end
if MsgText[2] == "الكيبورد" then return mute_keyboard(msg) end
if MsgText[2] == "الروابط" then return lock_link(msg) end
if MsgText[2] == "التاك" then return lock_tag(msg) end
if MsgText[2] == "المعرفات" then return lock_username(msg) end
if MsgText[2] == "التعديل" then return lock_edit(msg) end
if MsgText[2] == "الكلايش" then return lock_spam(msg) end
if MsgText[2] == "التكرار" then return lock_flood(msg) end
if MsgText[2] == "البوتات" then return lock_bots(msg) end
if MsgText[2] == "البوتات بالطرد" then return lock_bots_by_kick(msg) end
if MsgText[2] == "الماركدوان" then return lock_markdown(msg) end
if MsgText[2] == "الويب" then return lock_webpage(msg) end
if MsgText[2] == "التثبيت" then return lock_pin(msg) end
end

--{ Commands For Unlocks }
if MsgText[1] == "فتح" then
if MsgText[2] == "الكل" then return Unlock_All(msg) end
if MsgText[2] == "الوسائط" then return Unlock_Media(msg) end
if MsgText[2] == "الصور بالتقييد" then return fktqeed_photo(msg) end
if MsgText[2] == "الفيديو بالتقييد" then return fktqeed_video(msg) end
if MsgText[2] == "المتحركه بالتقييد" then return fktqeed_gif(msg) end
if MsgText[2] == "التوجيه بالتقييد" then return fktqeed_fwd(msg) end
if MsgText[2] == "الروابط بالتقييد" then return fktqeed_link(msg) end
if MsgText[2] == "المتحركه" then return unmute_gif(msg) end
if MsgText[2] == "الدردشه" then return unmute_text(msg) end
if MsgText[2] == "الصور" then return unmute_photo(msg) end
if MsgText[2] == "الفيديو" then return unmute_video(msg) end
if MsgText[2] == "البصمات" then return unmute_voice(msg) end
if MsgText[2] == "الصوت" then return unmute_audio(msg) end
if MsgText[2] == "الملصقات" then return unmute_sticker(msg) end
if MsgText[2] == "الجهات" then return unmute_contact(msg) end
if MsgText[2] == "التوجيه" then return unmute_forward(msg) end
if MsgText[2] == "الموقع" then return unmute_location(msg) end
if MsgText[2] == "الملفات" then return unmute_document(msg) end
if MsgText[2] == "الاشعارات" then return unmute_tgservice(msg) end
if MsgText[2] == "الانلاين" then return unmute_inline(msg) end
if MsgText[2] == "الالعاب" then return unmute_game(msg) end
if MsgText[2] == "الكيبورد" then return unmute_keyboard(msg) end
if MsgText[2] == "الروابط" then return unlock_link(msg) end
if MsgText[2] == "التاك" then return unlock_tag(msg) end
if MsgText[2] == "المعرفات" then return unlock_username(msg) end
if MsgText[2] == "التعديل" then return unlock_edit(msg) end
if MsgText[2] == "الكلايش" then return unlock_spam(msg) end
if MsgText[2] == "التكرار" then return unlock_flood(msg) end
if MsgText[2] == "البوتات" then return unlock_bots(msg) end
if MsgText[2] == "البوتات بالطرد" then return unlock_bots_by_kick(msg) end
if MsgText[2] == "الماركدوان" then return unlock_markdown(msg) end
if MsgText[2] == "الويب" then return unlock_webpage(msg) end
if MsgText[2] == "التثبيت" then return unlock_pin(msg) end
end

if MsgText[1] == "انشاء رابط" then
if not msg.Director then return "📛¦ هذا الامر يخص {المطور,المنشئ,المدير} فقط \n🚶" end
if not redis:get(boss..'ExCmdLink'..msg.chat_id_) then
local LinkGp = ExportLink(msg.chat_id_)
if LinkGp then
LinkGp = LinkGp.result
redis:set(boss..'linkGroup'..msg.chat_id_,LinkGp)
redis:setex(boss..'ExCmdLink'..msg.chat_id_,120,true)
return sendMsg(msg.chat_id_,msg.id_,"🙋🏼‍♂️¦ تم انشاء رابط جديد \n🔖¦ ["..LinkGp.."]\n🔖¦ لعرض الرابط ارسل { الرابط } \n")
else
return sendMsg(msg.chat_id_,msg.id_,"📛¦ لا يمكنني انشاء رابط للمجموعه .\n🎟¦ لانني لست مشرف في المجموعه \n ❕")
end
else
return sendMsg(msg.chat_id_,msg.id_,"📛¦ لقد قمت بانشاء الرابط سابقا .\n🎟¦ ارسل { الرابط } لرؤيه الرابط \n ❕")
end
return false
end

if MsgText[1] == "الرابط" then
if not redis:get(boss..'linkGroup'..msg.chat_id_) then
return "📡¦ اوه 🙀 لا يوجد رابط ☹️\n🔖¦لانشاء رابط ارسل { انشاء رابط } \n📡"
end
local GroupName = redis:get(boss..'group:name'..msg.chat_id_)
local GroupLink = redis:get(boss..'linkGroup'..msg.chat_id_)
return "🔖¦رابـط الـمـجـمـوعه 💯\n🌿¦ "..Flter_Markdown(GroupName).." :\n\n["..GroupLink.."]\n"
end

if MsgText[1] == "ضع القوانين" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
redis:setex(boss..'rulse:witting'..msg.sender_user_id_,300,true)
return '📭¦ حسننا عزيزي ✋🏿\n🗯¦ الان ارسل القوانين للمجموعه 🍃'
end

if MsgText[1] == "القوانين" then
if not redis:get(boss..'rulse:msg'..msg.chat_id_) then
return "📡¦ مرحبأ عزيري 👋🏻 القوانين كلاتي 👇🏻\n🔖¦ ممنوع نشر الروابط \n🔖¦ ممنوع التكلم او نشر صور اباحيه \n🔖¦ ممنوع اعاده توجيه\n🔖¦ ممنوع التكلم بلطائفه \n🔖¦ الرجاء احترام المدراء والادمنيه 😅\n"
else
return "🔖¦القوانين :\n"..redis:get(boss..'rulse:msg'..msg.chat_id_)
end
end

if MsgText[1] == "ضع تكرار" then
if not msg.Admin then return "📛¦ هذا الامر يخص {الادمن,المدير,المنشئ,المطور} فقط \n🚶" end
local NumLoop = tonumber(MsgText[2])
if NumLoop < 1 or NumLoop > 50 then
return "📡¦ حدود التكرار , يجب ان تكون ما بين [2-50]"
end
redis:set(boss..'flood'..msg.chat_id_,MsgText[2])
return "📡¦ تم وضع التكرار » { "..MsgText[2].." }"
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions