Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function run(msg, matches)
- if is_owner(msg) then
- return
- end
- local data = load_data(_config.moderation.data)
- if data[tostring(msg.to.id)] then
- if data[tostring(msg.to.id)]['settings'] then
- if data[tostring(msg.to.id)]['settings']['lock_adds'] then
- lock_adds = data[tostring(msg.to.id)]['settings']['lock_adds']
- end
- end
- end
- local chat = get_receiver(msg)
- local user = "user#id"..msg.from.id
- if lock_adds == "yes" then
- send_large_msg(chat, 'ممنوع الاعلانات!')
- chat_del_user(chat, user, ok_cb, true)
- end
- end
- return {
- patterns = {
- "telegram.me/joinchat/",
- "https://"
- },
- run = run
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement