๐Create ๐ Programmer๐ยฉ
https://www.youtube.com/watch?v=0hN7SwktUug
ุฌู
ุงุนุฉ ุงูููุจ ูุตููุฉ ุฏุฑุณ 25๐๐
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
ุดุฑุญ ู ูู ููู ุงูู ูุฏูุง ููุน ุตูุฑ
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
ุทุจุนุง ุงูู ุงูุซุฑ ู ู ููุน ุงูู ููู ููุชุญ ุตูุฑ ,ุฑูุงุจุท,ู ูุตูุงุช,ุตูุช,ูุฏูู...ุงูุฎ
ูุณู ุฑุงุญ ุงุดุฑุญ ููู ููุชุญ ููุตูุฑ ูุงุทููู ุจููุฉ ุงูุงูุงู ุฑ ุจุจููุฉ ุงุงููุงุน ุงูู ูุฏูุง
#ูุจุฏู_ุน_ุจุฑูุฉ_ุงููู
ู ูู ููู ููุชุญ ุงูู ูุฏูุง ูู ููุณุฉ ููู ุงุนุงุฏุฉ ุชูุฌูู ูุดููู ุชุบูุฑุงุช ูุบูุฑ ุงูุงู ุฑ ููุบูุฑ msg.fwd_from
ูุญุท ุจู ูุงููุฉ msg.reply_id
ูุณู ุฑุงุญ ุงุดุฑุญ ูุชุงุจุนู ุฎุทูุฉ ุจุฎุทูุฉ ูุจุฏู :
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุงูู
local lock_photo = msg['id']
local PHOTO = 'LOCK: -'..msg.to.id
ุนุฑููุฉ ู ุชุบูุฑ ู ู ููุน ูููุงู ูุญูุธ ุจููุฉ ุงูุฑุณุงูุฉ
ูุงูู ุชุบูุฑ ุงูุซุงูู ูุญูุธ ุจูู ุงูุงูุฏู ู ุงู ุฑุณุงูุฉ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุซุงูู
if redis:get(PHOTO)
and not is_momod(msg)
and msg.media
and msg.media.type == 'photo'
delete_msg(msg.id, ok_cb, true)
send_large_msg(get_receiver(msg), 'ูุง ุชูุฏุฒ ุตููุฑ ููููุฏู๐ุฃุฎูุงู ุนฺููฉ๐ @'..msg.from.username)
return "ู ุงุดู๐๐"
end
return msg
end
ููุง ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ูุฎูู ุดุฑุท ููู ุงุฐุง ุงูุฑูุฏุฒ ุฎุฒู ุงูุฑุณุงูุฉ ูููุน ุงูุฑุณุงูู ููู ู ูุฏูุง
ูููุนูุฉ ุจุงูุชุญุฏูุฏ ูู ุตูุฑ
ูุฃุญุฐู ุงูุตูุฑุฉ ูุฏุฒ ุฑุณุงูู ุชุญุฐูุฑ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุซุงูุซ
local function FUN1(msg, matches)
chat_id = msg.to.id
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:set(PHOTO, true)
local PHOTO = "ุชูเฅู ุชุดุบูู ู ูุน ุงูุตููุฑ๐คโ๐พ"
return reply_msg(reply_id, FUN1, ok_cb, false)
end
ุนุฑููุฉ ุฏุงูู ู ู ููุน ูุงูุดู ููุง ุดุฑุงุญ ูุตูุฑุ
ุฑุงุญ ูุชุงูุฏ ู ู ุงูุงู ุฑ lock ุงุฐุง ุงูุฏุฒ ูุฐุง ุงูุงู ุฑ ููู ุฌู ูุนู ูุฌุงู ููุน ุงูุฑุณุงูุฉ ุงูู ุฑุณูุฉ ูู ุตูุฑ
ูุฌูุจ ุงูุงูุฏู ู ุงู ุฑุณุงูู ููุนู ุงูุฑูุฏุฒ ูุฑุฉ ู ุชุชููุฐ ุงูููุดู ุฏุธ ุฑุณุงูู ุชู ุชุดุบูู ู ูุน ุงูุตูุฑ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุฑุงุจุน
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local lock_photo = " ุงูุตูุฑ ุจุงููุนู ู ูููุฉ"
return reply_msg(reply_id, lock_photo, ok_cb, false)
end
ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ูุชุงูุฏ ุงุฐุง ุฌุงู ุงู ุฑ ุงูููู ู ูุนู ูู ู ููุน ููู ุตูุฑ ูุฑุงุญ ูุฏุฒูุฉ ุฑุณุงูู ููููู ุงูู ุงูุตูุฑ ุจุงููุนู ู ูููุฉ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุฎุงู ุณ
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:del(PHOTO)
local PHOTO = "ุชูเฅู ุงุทููุงุก ู ูุน ุงูุตููุฑ๐ ๐โฃ"
return reply_msg(reply_id, PHOTO, ok_cb, false)
end
ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ูุชุฃูุฏ ุงุฐุง ุงูุฏุฒ ุงู ุฑ unlock ูู ู ููุน ุตูุฑ ูููุชุญ ุงูููู ููุฏุฒ ุฑุณุงูู
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุณุงุฏุณ
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = "ุชู ุจุงููุนู ูุชุญ ููู ุงูุตูุฑ"
return reply_msg(reply_id,PHOTO, ok_cb, false)
end
end
ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ููุงุฑู ุงุฐุง ุงูุงู ุฑ ุงูู ุงูุฏุฒ ูู unlock
ูุงูู ูุฏูุง ููุน ุตูุฑ ูุงูููู ุฌุงู ู ูุชูุญ ู ุณุจูุง ูุฑุงุญ ููููู ุงูู ุงูููู ู ูุชูุญ ุจุงููุนู
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
#ุดูู_ุงูู ูู_ุฑุงุญ_ูููู_ููุฌ:
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
do
ุดุฑุญ ู ูู ููู ุงูู ูุฏูุง ููุน ุตูุฑ
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
ุทุจุนุง ุงูู ุงูุซุฑ ู ู ููุน ุงูู ููู ููุชุญ ุตูุฑ ,ุฑูุงุจุท,ู ูุตูุงุช,ุตูุช,ูุฏูู...ุงูุฎ
ูุณู ุฑุงุญ ุงุดุฑุญ ููู ููุชุญ ููุตูุฑ ูุงุทููู ุจููุฉ ุงูุงูุงู ุฑ ุจุจููุฉ ุงุงููุงุน ุงูู ูุฏูุง
#ูุจุฏู_ุน_ุจุฑูุฉ_ุงููู
ู ูู ููู ููุชุญ ุงูู ูุฏูุง ูู ููุณุฉ ููู ุงุนุงุฏุฉ ุชูุฌูู ูุดููู ุชุบูุฑุงุช ูุบูุฑ ุงูุงู ุฑ ููุบูุฑ msg.fwd_from
ูุญุท ุจู ูุงููุฉ msg.reply_id
ูุณู ุฑุงุญ ุงุดุฑุญ ูุชุงุจุนู ุฎุทูุฉ ุจุฎุทูุฉ ูุจุฏู :
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุงูู
local lock_photo = msg['id']
local PHOTO = 'LOCK: -'..msg.to.id
ุนุฑููุฉ ู ุชุบูุฑ ู ู ููุน ูููุงู ูุญูุธ ุจููุฉ ุงูุฑุณุงูุฉ
ูุงูู ุชุบูุฑ ุงูุซุงูู ูุญูุธ ุจูู ุงูุงูุฏู ู ุงู ุฑุณุงูุฉ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุซุงูู
if redis:get(PHOTO)
and not is_momod(msg)
and msg.media
and msg.media.type == 'photo'
delete_msg(msg.id, ok_cb, true)
send_large_msg(get_receiver(msg), 'ูุง ุชูุฏุฒ ุตููุฑ ููููุฏู๐ุฃุฎูุงู ุนฺููฉ๐ @'..msg.from.username)
return "ู ุงุดู๐๐"
end
return msg
end
ููุง ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ูุฎูู ุดุฑุท ููู ุงุฐุง ุงูุฑูุฏุฒ ุฎุฒู ุงูุฑุณุงูุฉ ูููุน ุงูุฑุณุงูู ููู ู ูุฏูุง
ูููุนูุฉ ุจุงูุชุญุฏูุฏ ูู ุตูุฑ
ูุฃุญุฐู ุงูุตูุฑุฉ ูุฏุฒ ุฑุณุงูู ุชุญุฐูุฑ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุซุงูุซ
local function FUN1(msg, matches)
chat_id = msg.to.id
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:set(PHOTO, true)
local PHOTO = "ุชูเฅู ุชุดุบูู ู ูุน ุงูุตููุฑ๐คโ๐พ"
return reply_msg(reply_id, FUN1, ok_cb, false)
end
ุนุฑููุฉ ุฏุงูู ู ู ููุน ูุงูุดู ููุง ุดุฑุงุญ ูุตูุฑุ
ุฑุงุญ ูุชุงูุฏ ู ู ุงูุงู ุฑ lock ุงุฐุง ุงูุฏุฒ ูุฐุง ุงูุงู ุฑ ููู ุฌู ูุนู ูุฌุงู ููุน ุงูุฑุณุงูุฉ ุงูู ุฑุณูุฉ ูู ุตูุฑ
ูุฌูุจ ุงูุงูุฏู ู ุงู ุฑุณุงูู ููุนู ุงูุฑูุฏุฒ ูุฑุฉ ู ุชุชููุฐ ุงูููุดู ุฏุธ ุฑุณุงูู ุชู ุชุดุบูู ู ูุน ุงูุตูุฑ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุฑุงุจุน
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local lock_photo = " ุงูุตูุฑ ุจุงููุนู ู ูููุฉ"
return reply_msg(reply_id, lock_photo, ok_cb, false)
end
ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ูุชุงูุฏ ุงุฐุง ุฌุงู ุงู ุฑ ุงูููู ู ูุนู ูู ู ููุน ููู ุตูุฑ ูุฑุงุญ ูุฏุฒูุฉ ุฑุณุงูู ููููู ุงูู ุงูุตูุฑ ุจุงููุนู ู ูููุฉ
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุฎุงู ุณ
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:del(PHOTO)
local PHOTO = "ุชูเฅู ุงุทููุงุก ู ูุน ุงูุตููุฑ๐ ๐โฃ"
return reply_msg(reply_id, PHOTO, ok_cb, false)
end
ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ูุชุฃูุฏ ุงุฐุง ุงูุฏุฒ ุงู ุฑ unlock ูู ู ููุน ุตูุฑ ูููุชุญ ุงูููู ููุฏุฒ ุฑุณุงูู
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
โ[[
#ุงูุณุทุฑ_ุงูุณุงุฏุณ
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = "ุชู ุจุงููุนู ูุชุญ ููู ุงูุตูุฑ"
return reply_msg(reply_id,PHOTO, ok_cb, false)
end
end
ุจูุงู ุงูุงุณุทุฑ ุฑุงุญ ููุงุฑู ุงุฐุง ุงูุงู ุฑ ุงูู ุงูุฏุฒ ูู unlock
ูุงูู ูุฏูุง ููุน ุตูุฑ ูุงูููู ุฌุงู ู ูุชูุญ ู ุณุจูุง ูุฑุงุญ ููููู ุงูู ุงูููู ู ูุชูุญ ุจุงููุนู
โ]]
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
#ุดูู_ุงูู ูู_ุฑุงุญ_ูููู_ููุฌ:
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
do
local function pre_process(msg)
local lock_photo = msg['id']
local PHOTO = 'LOCK: -'..msg.to.id
if redis:get(PHOTO)
and not is_momod(msg)
and msg.media
and msg.media.type == 'photo'
then
delete_msg(msg.id, ok_cb, true)
send_large_msg(get_receiver(msg), 'ูุง ุชูุฏุฒ ุตููุฑ ููููุฏู๐ุฃุฎูุงู ุนฺููฉ๐ @'..msg.from.username)
return "ู ุงุดู๐๐"
end
return msg
end
local function PHOTO(msg, matches)
chat_id = msg.to.id
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:set(PHOTO, true)
local PHOTO = "ุชูเฅู ุชุดุบูู ู ูุน ุงูุตููุฑ๐คโ๐พ"
return reply_msg(reply_id, PHOTO, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local lock_photo1 = "ู ูุน ุงูุตูุฑ ุจุงููุนู ู ูุนู"
return reply_msg(reply_id, lock_photo1, ok_cb, false)
end
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:del(PHOTO)
local PHOTO = "ุชูเฅู ุงุทููุงุก ู ูุน ุงูุตููุฑ๐ ๐โฃ"
return reply_msg(reply_id, PHOTO, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = "ุชู ุจุงููุนู ูุชุญ ููู ุงูุตูุฑ"
return reply_msg(reply_id,PHOTO, ok_cb, false)
end
end
return {
patterns ={
"^[/!](lock) (photo)$",
"^[/!](unlock) (photo)$"
},
run = PHOTO,
pre_process = pre_process
}
end
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
ุงู ุดู ู ููู ุชูู ุชูุฏุฑูู ุชุณุฆููููโบ๏ธ๐
Bot-telegram|๐|@progfemo96_bot||Channel: @create_programmer
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
local lock_photo = msg['id']
local PHOTO = 'LOCK: -'..msg.to.id
if redis:get(PHOTO)
and not is_momod(msg)
and msg.media
and msg.media.type == 'photo'
then
delete_msg(msg.id, ok_cb, true)
send_large_msg(get_receiver(msg), 'ูุง ุชูุฏุฒ ุตููุฑ ููููุฏู๐ุฃุฎูุงู ุนฺููฉ๐ @'..msg.from.username)
return "ู ุงุดู๐๐"
end
return msg
end
local function PHOTO(msg, matches)
chat_id = msg.to.id
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:set(PHOTO, true)
local PHOTO = "ุชูเฅู ุชุดุบูู ู ูุน ุงูุตููุฑ๐คโ๐พ"
return reply_msg(reply_id, PHOTO, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local lock_photo1 = "ู ูุน ุงูุตูุฑ ุจุงููุนู ู ูุนู"
return reply_msg(reply_id, lock_photo1, ok_cb, false)
end
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = 'LOCK: -'..msg.to.id
redis:del(PHOTO)
local PHOTO = "ุชูเฅู ุงุทููุงุก ู ูุน ุงูุตููุฑ๐ ๐โฃ"
return reply_msg(reply_id, PHOTO, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local PHOTO = "ุชู ุจุงููุนู ูุชุญ ููู ุงูุตูุฑ"
return reply_msg(reply_id,PHOTO, ok_cb, false)
end
end
return {
patterns ={
"^[/!](lock) (photo)$",
"^[/!](unlock) (photo)$"
},
run = PHOTO,
pre_process = pre_process
}
end
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
ุงู ุดู ู ููู ุชูู ุชูุฏุฑูู ุชุณุฆููููโบ๏ธ๐
Bot-telegram|๐|@progfemo96_bot||Channel: @create_programmer
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
https://telegram.me/javaebooks ููุงุชู ุญููุฉ ููุดุฑ ูุชุจ ุน ุจุฑู
ุฌุฉ
โบ๏ธุดูุฑุง ููู ุณูุฉ ุฑุจูู ุงู
ุง ุงูู ุจูุฉ ุจุงูููุงุฉ ูู
ุงุนุฑู ุดูู ุงูุช ูุดุฏุชุญุณ ุน ุนู
ูู
ุงุณูุฉ ุฏูุฎุชูู
ุงุงูููู
ุชุตุจุญูู ุน ุฎูุฑ๐ธ
๐คูุงุฐุง ูุงุชุญ ููู ู
ู ุญุงุณุจุฉ ููุท ุงูุชุจ ุจุงูู
ุชุตูุญ : view-source:https://www.facebook.com/ ููุทูุนูู ููุฏ ุงูู
ููุน ๐
Facebook
Facebook โ log in or sign up
Log in to Facebook to start sharing and connecting with your friends, family and people you know.
ูุฐุง ุงูู
ููุน ููุด ุญูู ูู
ููุฏ ุทุจุนุง ูุงุฏูู ู
ู ูุฑูุช ูุบุงุช ุจุฑู
ุฌู ููุด ุญูู ุญุชู ู
ุญุฑุฑ ุงููุบุฉ ู
ูุฌูุฏ ุจูู ^^ ุงุชู
ูู ูููุฏูู
http://www.tutorialspoint.com
๐Create ๐ Programmer๐ยฉ
<!DOCTYPE html> <!โ ุงูู ู
ุง ุชุฎูู ุตูุญุฉ ุงุฌ ุชู ุงู
ุงู ูุงุฒู
ุชูุชุจ ูุฐุง ุงูููุฏ ุญุชู ูุนุฑู ุงูู
ุชุตูุญ ุงูู ููุน ุงูู
ูู ูู ุงุฌ ุชู ุงู
ุงู โ> <html> <!โ ูุฐุง ุชุงู ุงููุชุญ ุงูู ุชุงู ููุชุจู ุจุงูุตูุญุฉ โ> <head> <!โ ูุฐุง ุงูุชุงู ุงูู ู
ููุชุจู ุฑุงุญ ููุชุจ ุจุฏุงุฎูู ุชุงู ุงูุฎุงุต ุจูุบุฉ ุณู ุงุณ ุงุณ ุนูู
ูุฏโฆ
โบ๏ธุงูู ุฏุฎูู ููููุงุฉ ุงู ูุฑุฏูู ูุนุฑููู ุดูู ูุจุฏูู ูุตู
ู
ูู ุตูุญุฉ ููุจ ูุฐุง ุงูุดุฑุญ โจูููุฏูู
As the who follow channel became the Arabs + and foreigners๐๐
I'm going to convertโป๏ธ half of explanation to the english ๐โค๏ธ ||ุจู ุง ุงูู ู ุชุงุจุนูู ุงูููุงุฉ ุตุงุฑู ุนุฑุจ+ุงุฌุงูุจ ๐ุฑุงุญ ุงุดุฑุญ ุนุฑุจู +ุงุฌูุจู โค๏ธ
#Programmer_femo
I'm going to convertโป๏ธ half of explanation to the english ๐โค๏ธ ||ุจู ุง ุงูู ู ุชุงุจุนูู ุงูููุงุฉ ุตุงุฑู ุนุฑุจ+ุงุฌุงูุจ ๐ุฑุงุญ ุงุดุฑุญ ุนุฑุจู +ุงุฌูุจู โค๏ธ
#Programmer_femo
๐Create ๐ Programmer๐ยฉ
local function pre_process(msg) local lock_photo = msg['id'] local PHOTO = 'LOCK: -'..msg.to.id if redis:get(PHOTO) and not is_momod(msg) and msg.media and msg.media.type == 'photo' then delete_msg(msg.id, ok_cb, true) โฆ
ุญุจุงูุจ โบ๏ธุชุตุญูุญ ููุง ุจุงูู
ูู๐ PHOTO = ุฎุทุฃ ..
ูุงุฒู ุณู ูู "
local PHOTO = " ุชู ุจุงููุนู ููู ุงูุตูุฑ"
ุฎุทุฃ .
ูุฃู ููุง ุญูููู ุฑุฏ .. ุงุฐุง ุนุถู ุฏุฒ ุงูุฃู ุฑ ..
ูู ุญูููู ุงูุฑุฏ ..
ููู ุดุฑููู ููุท " ูุงูุชุตุญูุญ ุงูู ูู ุญูุตูุฑ ููุฌ :
do
local function pre_process(msg)
local lock_photo = msg['id']
local photo = 'LOCK: -'..msg.to.id
if redis:get(photo)
and not is_momod(msg)
and msg.media
and msg.media.type == 'photo'
then
delete_msg(msg.id, ok_cb, true)
send_large_msg(get_receiver(msg), 'ูุง ุชูุฏุฒ ุตููุฑ ููููุฏู๐ุฃุฎูุงู ุนฺููฉ๐ @'..msg.from.username)
return "ู ุงุดู๐๐"
end
return msg
end
local function photo(msg, matches)
chat_id = msg.to.id
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local photo = 'LOCK: -'..msg.to.id
redis:set(photo, true)
local photo3 = "ุชูเฅู ุชุดุบูู ู ูุน ุงูุตููุฑ๐คโ๐พ"
return reply_msg(reply_id, photo3, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local lock_photo2 = "ููุฃุฏุงุฑููู ููุท๐ธโ๐พ"
return reply_msg(reply_id, lock_photo2, ok_cb, false)
end
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local photo = 'LOCK: -'..msg.to.id
redis:del(photo)
local photo1 = "ุชูเฅู ุงุทููุงุก ู ูุน ุงูุตููุฑ๐ ๐โฃ"
return reply_msg(reply_id, photo1, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local photo = "ููุฃุฏุงุฑููู ููุท ๐โ๐พ"
return reply_msg(reply_id, photo, ok_cb, false)
end
end
return {
patterns = {
"^[/!](lock) (photo)$",
"^[/!](unlock) (photo)$"
},
run = photo,
pre_process = pre_process
}
end
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
ุงู ุดู ู ููู ุชูู ุชูุฏุฑูู ุชุณุฆููููโบ๏ธ๐
Bot-telegram|๐|@progfemo96_bot||Channel: @create_programmer
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
ูุงุฒู ุณู ูู "
local PHOTO = " ุชู ุจุงููุนู ููู ุงูุตูุฑ"
ุฎุทุฃ .
ูุฃู ููุง ุญูููู ุฑุฏ .. ุงุฐุง ุนุถู ุฏุฒ ุงูุฃู ุฑ ..
ูู ุญูููู ุงูุฑุฏ ..
ููู ุดุฑููู ููุท " ูุงูุชุตุญูุญ ุงูู ูู ุญูุตูุฑ ููุฌ :
do
local function pre_process(msg)
local lock_photo = msg['id']
local photo = 'LOCK: -'..msg.to.id
if redis:get(photo)
and not is_momod(msg)
and msg.media
and msg.media.type == 'photo'
then
delete_msg(msg.id, ok_cb, true)
send_large_msg(get_receiver(msg), 'ูุง ุชูุฏุฒ ุตููุฑ ููููุฏู๐ุฃุฎูุงู ุนฺููฉ๐ @'..msg.from.username)
return "ู ุงุดู๐๐"
end
return msg
end
local function photo(msg, matches)
chat_id = msg.to.id
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local photo = 'LOCK: -'..msg.to.id
redis:set(photo, true)
local photo3 = "ุชูเฅู ุชุดุบูู ู ูุน ุงูุตููุฑ๐คโ๐พ"
return reply_msg(reply_id, photo3, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'lock'
and matches[2]== 'photo'
then
local lock_photo2 = "ููุฃุฏุงุฑููู ููุท๐ธโ๐พ"
return reply_msg(reply_id, lock_photo2, ok_cb, false)
end
local reply_id = msg['id']
if is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local photo = 'LOCK: -'..msg.to.id
redis:del(photo)
local photo1 = "ุชูเฅู ุงุทููุงุก ู ูุน ุงูุตููุฑ๐ ๐โฃ"
return reply_msg(reply_id, photo1, ok_cb, false)
end
local reply_id = msg['id']
if not is_momod(msg)
and matches[1]== 'unlock'
and matches[2]== 'photo'
then
local photo = "ููุฃุฏุงุฑููู ููุท ๐โ๐พ"
return reply_msg(reply_id, photo, ok_cb, false)
end
end
return {
patterns = {
"^[/!](lock) (photo)$",
"^[/!](unlock) (photo)$"
},
run = photo,
pre_process = pre_process
}
end
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
ุงู ุดู ู ููู ุชูู ุชูุฏุฑูู ุชุณุฆููููโบ๏ธ๐
Bot-telegram|๐|@progfemo96_bot||Channel: @create_programmer
๐ใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐโฐใฐ๐
๐Create ๐ Programmer๐ยฉ
https://www.youtube.com/watch?v=F3mM5TJCAVI
ุฌู
ุงุนุฉ ุงูููุจ ูุตููุฉ ุฏุฑุณ 27๐