Best Python code snippet using avocado_python
اوامري.py
Source:اوامري.py
1import re2from telethon import Button, events3from telethon.events import CallbackQuery4from sbb_b import sbb_b 5from ..core import check_owner6from ..Config import Config7from razan.CMD.aomari import *8ROE = "** ÙÙØ°Ù ÙÙ ÙائÙ
Ø© اÙاÙ
Ùر سÙÙرس تÙبثÙÙ **"9ROZADM = "Ù
Ù ÙÙا ÙÙ
ÙÙ٠اÙجاد جÙ
Ùع"10RAZAN = Config.TG_BOT_USERNAME11if Config.TG_BOT_USERNAME is not None and tgbot is not None:12 @tgbot.on(events.InlineQuery)13 async def inline_handler(event):14 builder = event.builder15 result = None16 query = event.text17 await sbb_b.get_me()18 if query.startswith("اÙاÙ
رÙ") and event.query.user_id == sbb_b.uid:19 buttons = [20 [Button.inline("Ù
عÙÙÙ
ات تÙبثÙÙ", data="AOMRDB")],21 [22 Button.inline("اÙبÙت", data="eeeeq"),23 Button.inline("اÙÙرÙب", data="admincmd_s")24 ],25 [26 Button.inline("اÙتسÙÙØ©", data="TASLIACMD"),27 Button.inline("اÙاداÙات", data="toolsed1"),28 ],29 [30 Button.inline("اÙتØÙ
ÙÙ", data="DOWMANLODE4"),31 ],32 [33 Button.inline("اÙاÙسترا", data="EXTRACMD"),34 Button.inline(" اÙÙارات", data="VARJMTHON"),35 ]36 ]37 result = builder.article(38 title="sbb_b",39 text=ROE,40 buttons=buttons,41 link_preview=False,42 )43 await event.answer([result] if result else None)44@sbb_b.ar_cmd(pattern="اÙاÙ
رÙ")45async def repo(event):46 start = Config.TG_BOT_USERNAME47 if event.reply_to_msg_id:48 await event.get_reply_message()49 response = await sbb_b.inline_query(start, "اÙاÙ
رÙ")50 await response[0].click(event.chat_id)51 await event.delete()52@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"MAIN")))53@check_owner54async def _(event):55 butze = [56 [Button.inline("Ù
عÙÙÙ
ات تÙبثÙÙ", data="AOMRDB")],57 [58 Button.inline("اÙبÙت", data="eeeeq"),59 Button.inline("اÙÙرÙب", data="admincmd_s")60 ],61 [62 Button.inline("اÙتسÙÙØ©", data="TASLIACMD"),63 Button.inline("اÙاداÙات", data="toolsed1"),64 ],65 [66 Button.inline("اÙتØÙ
ÙÙ", data="DOWMANLODE4"),67 ],68 [69 Button.inline("اÙاÙسترا", data="EXTRACMD"),70 Button.inline(" اÙÙارات", data="VARJMTHON"),71 ]72 ]73 await event.edit(ROE, buttons=butze)74@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"VARJMTHON")))75async def varssett(event):76 await event.edit(77 "Ù
Ù ÙÙا ÙÙ
ÙÙ٠عرض شرÙØات اÙÙارات:",78 buttons=[79 [80 Button.inline("Ùارات اÙÙØص", data="alivevar"),81 Button.inline("Ùارات اÙØÙ
اÙØ©", data="pmvars"),82 ],83 [ Button.inline("Ùارات اÙبرÙÙاÙÙ", data="namevar")],84 [85 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")86 ]]87 )88@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"namevar")))89async def varssett(event):90 await event.edit(91 "Ù
Ù ÙÙا ÙÙ
ÙÙ٠عرض شرÙØات Ùارات اÙاسÙ
ÙاÙباÙÙ ÙاÙØ®:",92 buttons=[93 [94 Button.inline("اسÙ
ØسابÙ", data="nameprvr"),95 Button.inline("زخرÙØ© اÙارÙاÙ
", data="numlokvar"),96 ],97 [98 Button.inline("Ùبذة ØسابÙ", data="biolokvar"),99 Button.inline("صÙرة ØسابÙ", data="phovarlok"),100 ],101 [102 Button.inline("رÙ
ز اÙاسÙ
", data="symnamvar"),103 ],104 [105 Button.inline("رجÙع", data="VARJMTHON")106 ],107 [108 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")109 ]110 ],111 )112@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"symnamvar")))113async def varssett(event):114 await event.edit(115 """ÙÙع اÙÙار: Ùارات اÙبرÙÙاÙÙ116اÙÙار اÙØاÙÙ: Ùار اÙرÙ
ز117اÙاÙ
ر: `.Ùضع اÙرÙ
ز`118اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بÙضع رÙ
ز بداÙØ© اسÙ
Øساب٠عÙد تشغÙ٠اÙ
ر .اسÙ
ÙÙتÙ119اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠اÙرÙ
ز باÙاÙ
ر `.Ùضع اÙرÙ
ز`120Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة121اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",122 buttons=[123 [Button.inline("رجÙع", data="namevar")],124 ],125 )126@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"phovarlok")))127async def varssett(event):128 await event.edit(129 """ÙÙع اÙÙار: Ùارات اÙبرÙÙاÙÙ130اÙÙار اÙØاÙÙ: Ùار اÙصÙرة131اÙاÙ
ر: `.Ùضع اÙصÙرة`132اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بÙضع اÙصÙرة اÙخاصة بØساب٠عÙد تشغÙ٠اÙ
ر اÙصÙرة اÙÙÙتÙØ©133اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠رابط اÙصÙرة باÙاÙ
ر `.Ùضع اÙباÙÙ`134*ÙÙ
ÙÙ٠استخدا اÙزخرÙØ© ا٠اÙÙغة اÙاÙÙÙÙزÙØ© ا٠اÙعربÙØ© اÙØ®..135* ÙÙÙÙØ© جÙب رابط اÙصÙرةØ136-باÙرد عÙ٠اÙصÙرة اÙÙ
راد استخراج Ù
ÙÙا اÙرابط ب `.تÙÙرا٠Ù
ÙدÙا`137Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة138اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",139 buttons=[140 [Button.inline("رجÙع", data="namevar")],141 ],142 )143@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"biolokvar")))144async def varssett(event):145 await event.edit(146 """ÙÙع اÙÙار: Ùارات اÙبرÙÙاÙÙ147اÙÙار اÙØاÙÙ: Ùار اÙباÙÙ148اÙاÙ
ر: `.Ùضع اÙباÙÙ`149اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بÙضع اÙÙبذ٠ا٠اÙباÙ٠عÙد تشغÙ٠اÙ
ر اÙباÙ٠اÙÙÙتÙ150اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠اÙباÙ٠باÙاÙ
ر `.Ùضع اÙباÙÙ`151*ÙÙ
ÙÙ٠استخدا اÙزخرÙØ© ا٠اÙÙغة اÙاÙÙÙÙزÙØ© ا٠اÙعربÙØ© اÙØ®..152Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة153اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",154 buttons=[155 [Button.inline("رجÙع", data="namevar")],156 ],157 )158@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"numlokvar")))159async def varssett(event):160 await event.edit(161 """ÙÙع اÙÙار: Ùارات اÙبرÙÙاÙÙ162اÙÙار اÙØاÙÙ: Ùار اÙزخرÙØ©163.زخرÙØ© اÙÙÙت 1164.زخرÙØ© اÙÙÙت 2165.زخرÙØ© اÙÙÙت 3166.زخرÙØ© اÙÙÙت 4167.زخرÙØ© اÙÙÙت 5168.زخرÙØ© اÙÙÙت 6169.زخرÙØ© اÙÙÙت 7170.زخرÙØ© اÙÙÙت 8171.زخرÙØ© اÙÙÙت 9172Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة173اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",174 buttons=[175 [Button.inline("رجÙع", data="namevar")],176 ],177 )178@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"nameprvr")))179async def varssett(event):180 await event.edit(181 """ÙÙع اÙÙار: Ùارات اÙبرÙÙاÙÙ182اÙÙار اÙØاÙÙ: Ùار اÙاسÙ
183اÙاÙ
ر: `.Ùضع اÙاسÙ
`184اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بÙضع اسÙ
Øساب٠ÙÙعدÙد Ù
٠اÙاÙاÙ
ر Ù
ث٠اÙÙØص ÙاÙØ®185اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠اسÙ
٠باÙاÙ
ر `.Ùضع اÙاسÙ
`186*ÙÙ
ÙÙ٠استخدا اÙزخرÙØ© ا٠اÙÙغة اÙاÙÙÙÙزÙØ© ا٠اÙعربÙØ© اÙØ®..187Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة188اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",189 buttons=[190 [Button.inline("رجÙع", data="namevar")],191 ],192 )193@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"pmvars")))194async def varssett(event):195 await event.edit(196 "Ù
Ù ÙÙا ÙÙ
ÙÙ٠عرض شرÙØات Ùارات اÙØÙ
اÙØ©:",197 buttons=[198 [199 Button.inline("صÙرة اÙØÙ
اÙØ©", data="picpmvar"),200 Button.inline("ÙÙÙشة اÙØÙ
اÙØ©", data="pmvarkish"),201 ],202 [203 Button.inline("ÙÙÙشة اÙØظر", data="banklish"),204 Button.inline("عدد اÙتØØ°Ùرات", data="warnvars"),205 ],206 [207 Button.inline("رجÙع", data="VARJMTHON")208 ],209 [210 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")211 ]212 ],213 )214@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"banklish")))215async def varssett(event):216 await event.edit(217 """ÙÙع اÙÙار: Ùارات اÙØÙ
اÙØ©218اÙÙار اÙØاÙÙ: Ùار ÙÙÙشة اÙØظر219اÙاÙ
ر: `.Ùضع ÙÙÙشة اÙØظر`220اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بتغÙÙر اÙÙÙÙشة (اÙÙÙاÙ
) اÙت٠تظÙر عÙدÙ
ا تÙتÙ٠تØØ°Ùرات اÙشخص ÙÙتÙ
ØظرÙ221اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠اÙÙÙÙشة اÙت٠ترÙد ÙضعÙا باÙاÙ
ر `.Ùضع ÙÙÙشة اÙØظر `222* ÙÙ
ÙÙÙ Ùتابة ا٠ÙÙÙشة Ù
Ø«Ùا: عزÙز٠اÙÙ
ستخدÙ
تÙ
Øظر٠223Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة224اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",225 buttons=[226 [Button.inline("رجÙع", data="pmvars")],227 ],228 )229@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"warnvars")))230async def varssett(event):231 await event.edit(232 """ÙÙع اÙÙار: Ùارات اÙØÙ
اÙØ©233اÙÙار اÙØاÙÙ: Ùار عدد اÙتØØ°Ùرات234اÙاÙ
ر: `.Ùضع عدد اÙتØØ°Ùرات`235اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بتغÙÙر عدد اÙتØØ°Ùرات اÙت٠ÙÙÙÙ
اÙسÙرس بتØØ°Ùر اÙÙ
ستخدÙ
بÙا Ùب٠ØظرÙ236اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠عدد اÙتØØ°Ùرات ÙرÙÙ
باÙاÙ
ر `.Ùضع عدد اÙتØØ°Ùرات `237Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة238اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",239 buttons=[240 [Button.inline("رجÙع", data="pmvars")],241 ],242 )243@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"pmvarkish")))244async def varssett(event):245 await event.edit(246 """ÙÙع اÙÙار: Ùارات اÙØÙ
اÙØ©247اÙÙار اÙØاÙÙ: Ùار ÙÙÙشة اÙØÙ
اÙØ©248اÙاÙ
ر: `.Ùضع ÙÙÙشة اÙØÙ
اÙØ©`249اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بتغÙÙر اÙÙÙÙشة (اÙÙÙاÙ
) اÙت٠تظÙر عÙدÙ
ا ÙÙÙ٠اÙ
ر اÙØÙ
اÙØ© شغا٠ÙÙراسÙ٠اØد250اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠اÙÙÙÙشة اÙت٠ترÙد ÙضعÙا باÙاÙ
ر `.Ùضع ÙÙÙشة اÙØÙ
اÙØ© `251* ÙÙ
ÙÙ٠اÙØصÙ٠عÙÙ ÙÙÙشة جاÙزة Ù
Ù Ùذ٠اÙÙÙاة @Tepthone252Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة253اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",254 buttons=[255 [Button.inline("رجÙع", data="pmvars")],256 ],257 )258@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"picpmvar")))259async def varssett(event):260 await event.edit(261 """ÙÙع اÙÙار: Ùارات اÙØÙ
اÙØ©262اÙÙار اÙØاÙÙ: Ùار صÙرة اÙØÙ
اÙØ©263اÙاÙ
ر: `.Ùضع صÙرة اÙØÙ
اÙØ©`264اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بتغÙÙر ا٠Ùضع اÙصÙرة اÙت٠تظÙر عÙدÙ
ا ÙÙÙ٠اÙ
ر اÙØÙ
اÙØ© شغا٠ÙÙراسÙ٠اØد265اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠رابط اÙصÙرة اÙت٠ترÙد ÙضعÙا باÙاÙ
ر `.Ùضع صÙرة اÙØÙ
اÙØ©` 266* ÙÙÙÙØ© جÙب رابط اÙصÙرةØ267-باÙرد عÙ٠اÙصÙرة اÙÙ
راد استخراج Ù
ÙÙا اÙرابط ب `.تÙÙرا٠Ù
ÙدÙا`268Ù
ÙاØظة : **ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة**269اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",270 buttons=[271 [Button.inline("رجÙع", data="pmvars")],272 ],273 )274@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"alivevar")))275async def varssett(event):276 await event.edit(277 "Ù
Ù ÙÙا ÙÙ
ÙÙ٠عرض شرÙØات Ùارات اÙÙØص:",278 buttons=[279 [280 Button.inline("صÙرة اÙÙØص", data="picvars"),281 Button.inline("ÙÙÙشة اÙÙØص", data="kleshalive"),282 ],283 [Button.inline("رÙ
ز اÙÙØص", data="rmzalive")],284 [285 Button.inline("رجÙع", data="VARJMTHON")286 ],287 [288 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")289 ]290 ],291 )292@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"picvars")))293async def varssett(event):294 await event.edit(295 """ÙÙع اÙÙار: Ùارات اÙÙØص296اÙÙار اÙØاÙÙ: Ùار صÙرة اÙÙØص297اÙاÙ
ر: `.Ùضع صÙرة اÙÙØص`298اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بتغÙÙر ا٠Ùضع اÙصÙرة اÙت٠تظÙر عÙد ارسا٠اÙ
ر `.ÙØص`299اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠رابط اÙصÙرة اÙت٠ترÙد ÙضعÙا باÙاÙ
ر `.Ùضع صÙرة اÙÙØص` 300* ÙÙÙÙØ© جÙب رابط اÙصÙرةØ301-باÙرد عÙ٠اÙصÙرة اÙÙ
راد استخراج Ù
ÙÙا اÙرابط ب `.تÙÙرا٠Ù
ÙدÙا`302Ù
ÙاØظة : **ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة**303اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",304 buttons=[305 [Button.inline("رجÙع", data="alivevar")],306 ],307 )308@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"kleshalive")))309async def varssett(event):310 await event.edit(311 """ ÙÙع اÙÙار: Ùارات اÙÙØص312اÙÙار اÙØاÙÙ: Ùار ÙÙÙشة اÙÙØص313اÙاÙ
ر: `.Ùضع ÙÙÙشة اÙÙØص`314اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بتغÙÙر اÙÙÙÙشة (اÙÙÙاÙ
) اÙت٠تظÙر عÙد ارسا٠اÙ
ر `.ÙØص`315اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠اÙÙÙÙشة اÙت٠ترÙد ÙضعÙا باÙاÙ
ر `.Ùضع ÙÙÙشة اÙÙØص `316* ÙÙ
ÙÙ٠اÙØصÙ٠عÙÙ ÙÙÙشة جاÙزة Ù
Ù Ùذ٠اÙÙÙاة @Tepthone317Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة318اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",319 buttons=[320 [Button.inline("رجÙع", data="alivevar")],321 ],322 )323@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"rmzalive")))324async def varssett(event):325 await event.edit(326 """ÙÙع اÙÙار: Ùارات اÙÙØص327اÙÙار اÙØاÙÙ: Ùار رÙ
ز اÙÙØص328اÙاÙ
ر: `.Ùضع رÙ
ز اÙÙØص`329اÙØ´Ø±Ø : ÙÙÙÙ
Ùذا اÙاÙ
ر بتغÙÙر اÙرÙ
ز اÙØ°Ù ÙظÙر عÙد ارسا٠اÙ
ر `.ÙØص`330اÙاستخداÙ
: تÙÙÙ
باÙرد عÙ٠اÙرÙ
ز اÙت٠ترÙد Ùضع٠باÙاÙ
ر `.Ùضع رÙ
ز اÙÙØص `331Ù
ÙاØظة : ÙÙ
ÙÙ٠استخداÙ
اÙاÙاÙ
ر Ù٠ا٠دردشة ا٠Ù
Øادثة332اÙاÙ
ر Ùارات سÙرس تÙبثÙÙ @Tepthone""",333 buttons=[334 [Button.inline("رجÙع", data="alivevar")],335 ],336 )337@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"EXTRACMD")))338@check_owner339async def _(event):340 butze = [341 [342 Button.inline("اÙترجÙ
Ø©", data="ALIVETRG"),343 Button.inline("اÙتÙجÙÙ", data="SAVETECXT"),344 Button.inline("ØاÙتÙ", data="R7ALTIE"),345 ],346 [347 Button.inline("اÙØاسبة", data="CALCATERE"),348 Button.inline("ÙÙرÙÙا", data="COROONA"),349 Button.inline("اÙارسا٠اÙÙÙÙ
Ù", data="SACAMF"),350 ],351 [352 Button.inline("ØÙ
اÙØ© اÙخاص", data="HEMAIREF"),353 Button.inline("اÙذاتÙØ©", data="DATECMD"),354 Button.inline("اÙبرÙÙÙÙ", data="PROFUIECMD"),355 ],356 [357 Button.inline("اÙصÙاة", data="SALACMD"),358 Button.inline("اÙÙتابة", data="KTABAFE"),359 Button.inline("اÙتا٠٠اÙÙ
ÙØ´Ù", data="TAGE4E"),360 ],361 [ 362 Button.inline("اÙتاÙÙ", data="EXTRAC7"),363 Button.inline("رجÙع", data="EXTRAC7")364 ],365 [366 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")367 ]]368 await event.edit(ROE, buttons=butze)369@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"HEMAIREF")))370@check_owner371async def _(event):372 buttons = [373 [374 Button.inline("رجÙع", data="EXTRACMD")]]375 await event.edit(HEMAIREF, buttons=buttons, link_preview=False)376@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"KTABAFE")))377@check_owner378async def _(event):379 buttons = [380 [381 Button.inline("رجÙع", data="EXTRACMD")]]382 await event.edit(KTABAFE, buttons=buttons, link_preview=False)383@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"EXTRAC7")))384@check_owner385async def _(event):386 butze = [387 [388 Button.inline("Ù
Ùص٠Ù
تØرÙ", data="VASCHER"),389 Button.inline("تØÙÙ٠صÙرة", data="STIKERPIC"),390 ],391 [392 Button.inline("تØÙÙÙ Ù
تØرÙØ©", data="TOGIDEF"),393 Button.inline("تØÙÙÙ ÙÙ
ÙÙ", data="ITESRAZAN"),394 ],395 [396 Button.inline("تØÙÙÙ ÙÙتابة", data="LTABAMEKF"),397 Button.inline("اÙÙ
ÙÙ ÙصÙرة", data="AJMTHOEF"),398 ],399 [400 Button.inline("تØÙÙÙ Ù
ÙصÙ", data="PICYEYS"),401 Button.inline("تØÙÙ٠صÙتÙ", data="JISORO"),402 ],403 [ 404 Button.inline("اÙتاÙÙ", data="EXTRACMD"),405 Button.inline("رجÙع", data="EXTRACMD")406 ],407 [408 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")409 ]]410 await event.edit(ROE, buttons=butze)411@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"DOWMANLODE4")))412@check_owner413async def _(event):414 butze = [415 [416 Button.inline("تØÙ
ÙÙ ÙÙدÙÙ", data="YOUTUBECCMD"),417 Button.inline("تØÙ
Ù٠صÙتÙ", data="YOUTUBECMD"),418 ],419 [420 Button.inline("بØØ«", data="ALIVETSM"),421 Button.inline("ÙÙدÙÙ", data="ALIVEFDO"),422 ],423 [424 Button.inline("اÙستا", data="INSTAGRAMCMD"),425 Button.inline("بÙÙترست", data="BENTRSTCMD"),426 ],427 [428 Button.inline("Ùتائج بØØ«", data="YIOFDD"),429 Button.inline("تØÙ
Ù٠صÙر", data="PICSERACJ"),430 ],431 [432 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")433 ]]434 await event.edit(ROE, buttons=butze)435@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"INSTAGRAMCMD")))436@check_owner437async def _(event):438 buttons = [439 [440 Button.inline("رجÙع", data="DOWMANLODE4")]]441 await event.edit(INSTAGRAMCMD, buttons=buttons, link_preview=False)442@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"YOUTUBECMD")))443@check_owner444async def _(event):445 buttons = [446 [447 Button.inline("رجÙع", data="DOWMANLODE4")]]448 await event.edit(YOUTUBECMD, buttons=buttons, link_preview=False)449@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"YOUTUBECCMD")))450@check_owner451async def _(event):452 buttons = [453 [454 Button.inline("رجÙع", data="DOWMANLODE4")]]455 await event.edit(YOUTUBECCMD, buttons=buttons, link_preview=False)456@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETSM")))457@check_owner458async def _(event):459 buttons = [460 [461 Button.inline("رجÙع", data="DOWMANLODE4")]]462 await event.edit(ALIVETSM, buttons=buttons, link_preview=False)463@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEFDO")))464@check_owner465async def _(event):466 buttons = [467 [468 Button.inline("رجÙع", data="DOWMANLODE4")]]469 await event.edit(ALIVEFDO, buttons=buttons, link_preview=False)470@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"BENTRSTCMD")))471@check_owner472async def _(event):473 buttons = [474 [475 Button.inline("رجÙع", data="DOWMANLODE4")]]476 await event.edit(BENTRSTCMD, buttons=buttons, link_preview=False)477@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"YIOFDD")))478@check_owner479async def _(event):480 buttons = [481 [482 Button.inline("رجÙع", data="DOWMANLODE4")]]483 await event.edit(YIOFDD, buttons=buttons, link_preview=False)484@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"PICSERACJ")))485@check_owner486async def _(event):487 buttons = [488 [489 Button.inline("رجÙع", data="DOWMANLODE4")]]490 await event.edit(PICSERACJ, buttons=buttons, link_preview=False)491@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"PICYEYS")))492@check_owner493async def _(event):494 buttons = [495 [496 Button.inline("رجÙع", data="EXTRAC7")]]497 await event.edit(PICYEYS, buttons=buttons, link_preview=False)498@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"AJMTHOEF")))499@check_owner500async def _(event):501 buttons = [502 [503 Button.inline("رجÙع", data="EXTRAC7")]]504 await event.edit(AJMTHOEF, buttons=buttons, link_preview=False)505@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"JISORO")))506@check_owner507async def _(event):508 buttons = [509 [510 Button.inline("رجÙع", data="EXTRAC7")]]511 await event.edit(JISORO, buttons=buttons, link_preview=False)512@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"LTABAMEKF")))513@check_owner514async def _(event):515 buttons = [516 [517 Button.inline("رجÙع", data="EXTRAC7")]]518 await event.edit(LTABAMEKF, buttons=buttons, link_preview=False)519@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ITESRAZAN")))520@check_owner521async def _(event):522 buttons = [523 [524 Button.inline("رجÙع", data="EXTRAC7")]]525 await event.edit(ITESRAZAN, buttons=buttons, link_preview=False)526@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TOGIDEF")))527@check_owner528async def _(event):529 buttons = [530 [531 Button.inline("رجÙع", data="EXTRAC7")]]532 await event.edit(TOGIDEF, buttons=buttons, link_preview=False)533@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"STIKERPIC")))534@check_owner535async def _(event):536 buttons = [537 [538 Button.inline("رجÙع", data="EXTRAC7")]]539 await event.edit(STIKERPIC, buttons=buttons, link_preview=False)540@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"VASCHER")))541@check_owner542async def _(event):543 buttons = [544 [545 Button.inline("رجÙع", data="EXTRAC7")]]546 await event.edit(VASCHER, buttons=buttons, link_preview=False)547@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TAGE4E")))548@check_owner549async def _(event):550 buttons = [551 [552 Button.inline("رجÙع", data="EXTRACMD")]]553 await event.edit(TAGE4E, buttons=buttons, link_preview=False)554@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"PROFUIECMD")))555@check_owner556async def _(event):557 buttons = [558 [559 Button.inline("رجÙع", data="EXTRACMD")]]560 await event.edit(PROFUIECMD, buttons=buttons, link_preview=False)561@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"SACAMF")))562@check_owner563async def _(event):564 buttons = [565 [566 Button.inline("رجÙع", data="EXTRACMD")]]567 await event.edit(SACAMF, buttons=buttons, link_preview=False)568@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"R7ALTIE")))569@check_owner570async def _(event):571 buttons = [572 [573 Button.inline("رجÙع", data="EXTRACMD")]]574 await event.edit(R7ALTIE, buttons=buttons, link_preview=False)575@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"SALACMD")))576@check_owner577async def _(event):578 buttons = [579 [580 Button.inline("رجÙع", data="EXTRACMD")]]581 await event.edit(SALACMD, buttons=buttons, link_preview=False)582@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"DATECMD")))583@check_owner584async def _(event):585 buttons = [586 [587 Button.inline("رجÙع", data="EXTRACMD")]]588 await event.edit(DATECMD, buttons=buttons, link_preview=False)589@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"COROONA")))590@check_owner591async def _(event):592 buttons = [593 [594 Button.inline("رجÙع", data="EXTRACMD")]]595 await event.edit(COROONA, buttons=buttons, link_preview=False)596@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"SAVETECXT")))597@check_owner598async def _(event):599 buttons = [600 [601 Button.inline("رجÙع", data="EXTRACMD")]]602 await event.edit(SAVETECXT, buttons=buttons, link_preview=False)603@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETRG")))604@check_owner605async def _(event):606 buttons = [607 [608 Button.inline("رجÙع", data="EXTRACMD")]]609 await event.edit(ALIVETRG, buttons=buttons, link_preview=False)610@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"BOTCMD4")))611@check_owner612async def _(event):613 butze = [614 [615 Button.inline("اÙÙØص", data="ALICES"),616 Button.inline("سÙÙب Ù
ÙدÙا", data="IMSLEEPF"),617 ],618 [619 Button.inline("اÙبÙÙ", data="PINGSMC"),620 Button.inline("اÙسÙرس", data="ALICVEINLI")621 ],622 [623 Button.inline("سرعة اÙاÙترÙت", data="ALNTDOS"),624 Button.inline("اعادة تشغÙÙ", data="ALIVEAUD"),625 ],626 [627 Button.inline("تØدÙØ« اÙسÙرس", data="UPDATE4E"),628 Button.inline("اÙسÙÙب", data="ALIVESLB"),629 ],630 [631 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")632 ]]633 await event.edit(ROE, buttons=butze)634#635@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALICVEINLI")))636@check_owner637async def _(event):638 buttons = [639 [640 Button.inline("رجÙع", data="BOTCMD4")]]641 await event.edit(ALICVEINLI, buttons=buttons, link_preview=False)642@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEAUD")))643@check_owner644async def _(event):645 buttons = [646 [647 Button.inline("رجÙع", data="BOTCMD4")]]648 await event.edit(ALIVEAUD, buttons=buttons, link_preview=False)649@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVESLB")))650@check_owner651async def _(event):652 buttons = [653 [654 Button.inline("رجÙع", data="BOTCMD4")]]655 await event.edit(ALIVESLB, buttons=buttons, link_preview=False)656@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"IMSLEEPF")))657@check_owner658async def _(event):659 buttons = [660 [661 Button.inline("رجÙع", data="BOTCMD4")]]662 await event.edit(IMSLEEPF, buttons=buttons, link_preview=False)663@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"UPDATE4E")))664@check_owner665async def _(event):666 buttons = [667 [668 Button.inline("رجÙع", data="BOTCMD4")]]669 await event.edit(UPDATE4E, buttons=buttons, link_preview=False)670@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALICES")))671@check_owner672async def _(event):673 buttons = [674 [675 Button.inline("رجÙع", data="BOTCMD4")]]676 await event.edit(ALICES, buttons=buttons, link_preview=False)677@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALNTDOS")))678@check_owner679async def _(event):680 buttons = [681 [682 Button.inline("رجÙع", data="BOTCMD4")]]683 await event.edit(ALNTDOS, buttons=buttons, link_preview=False)684@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"toolsed1")))685@check_owner686async def _(event):687 buttons = [688 [689 Button.inline("اذاعة ÙÙخاص", data="BROADEV1"),690 Button.inline("اذاعة ÙÙÙرÙب", data="BRWAADV1"),691 Button.inline("اضاÙØ© اعضاء", data="ADDMEM7"),692 ],693 [694 Button.inline("اÙاÙتØاÙ", data="CLIONEACMD"),695 Button.inline("اÙاعادة", data="ALIVEMEE"),696 Button.inline("اÙاÙدÙ", data="ALIVEDIII"),697 ],698 [699 Button.inline("اÙدÙ", data="KSHFCMD"),700 Button.inline("اÙتÙÙÙد", data="ADDTKLED"),701 Button.inline("اÙÙا٠اÙتÙÙÙد", data="STOPAZAG"),702 ],703 [Button.inline("اÙتاÙÙ", data="TOOLCMD2"),704 Button.inline("رجÙع", data="TOOLCMD2")705 ],706 [707 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")708 ]]709 await event.edit(ROE, buttons=buttons, link_preview=False)710@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEMEE")))711@check_owner712async def _(event):713 buttons = [714 [715 Button.inline("رجÙع", data="toolsed1")]]716 await event.edit(ALIVEMEE, buttons=buttons, link_preview=False)717@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ADDMEM7")))718@check_owner719async def _(event):720 buttons = [721 [722 Button.inline("رجÙع", data="toolsed1")]]723 await event.edit(ADDMEM7, buttons=buttons, link_preview=False)724#######################################################################725@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TOOLCMD2")))726@check_owner727async def _(event):728 buttons = [729 [730 Button.inline("اÙÙ
ÙÙدÙÙ
", data="ALMKD5D"),731 Button.inline("Øذ٠اÙÙ
ÙÙدÙÙ
", data="NOAZAJ4"),732 Button.inline("تÙÙرا٠Ù
ÙدÙا", data="TELEHTMED"),733 ],734 [735 Button.inline("Ùرر", data="TKRAR3ADI"),736 Button.inline("بÙت Ùشر (Ù
Ùرر)", data="MKRRR5"),737 Button.inline("سباÙ
", data="SPAM3AAH"),738 ],739 [740 Button.inline("اÙÙا٠اÙتÙرار", data="STOPTKRARE"),741 Button.inline("ÙسباÙ
", data="FGKHEF8"), ],742 [Button.inline("اÙتاÙÙ", data="toolsed1"),743 Button.inline("رجÙع", data="toolsed1")744 ],745 [746 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")747 ]]748 await event.edit(ROE, buttons=buttons, link_preview=False)749@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEDIII")))750@check_owner751async def _(event):752 buttons = [753 [754 Button.inline("رجÙع", data="toolsed1")]]755 await event.edit(ALIVEDIII, buttons=buttons, link_preview=False)756@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALMKD5D")))757@check_owner758async def _(event):759 buttons = [760 [761 Button.inline("رجÙع", data="TOOLCMD2")]]762 await event.edit(ALMKD5D, buttons=buttons, link_preview=False)763@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"NOAZAJ4")))764@check_owner765async def _(event):766 buttons = [767 [768 Button.inline("رجÙع", data="TOOLCMD2")]]769 await event.edit(NOAZAJ4, buttons=buttons, link_preview=False)770#771@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TELEHTMED")))772@check_owner773async def _(event):774 buttons = [775 [776 Button.inline("رجÙع", data="TOOLCMD2")]]777 await event.edit(TELEHTMED, buttons=buttons, link_preview=False)778#TELEHTMED779@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TKRAR3ADI")))780@check_owner781async def _(event):782 buttons = [783 [784 Button.inline("رجÙع", data="TOOLCMD2")]]785 await event.edit(TKRAR3ADI, buttons=buttons, link_preview=False)786#ثثثث787@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"MKRRR5")))788@check_owner789async def _(event):790 buttons = [791 [792 Button.inline("رجÙع", data="TOOLCMD2")]]793 await event.edit(MKRRR5, buttons=buttons, link_preview=False)794#ÙÙ٠جÙا 795@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"FGKHEF8")))796@check_owner797async def _(event):798 buttons = [799 [800 Button.inline("رجÙع", data="TOOLCMD2")]]801 await event.edit(FGKHEF8, buttons=buttons, link_preview=False)802#اÙ803@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"SPAM3AAH")))804@check_owner805async def _(event):806 buttons = [807 [808 Button.inline("رجÙع", data="TOOLCMD2")]]809 await event.edit(SPAM3AAH, buttons=buttons, link_preview=False)810@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"STOPTKRARE")))811@check_owner812async def _(event):813 buttons = [814 [815 Button.inline("رجÙع", data="TOOLCMD2")]]816 await event.edit(STOPTKRARE, buttons=buttons, link_preview=False)817######818@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"BROADEV1")))819@check_owner820async def _(event):821 buttons = [822 [823 Button.inline("رجÙع", data="toolsed1")]]824 await event.edit(BROADEV1, buttons=buttons, link_preview=False)825@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"BRWAADV1")))826@check_owner827async def _(event):828 buttons = [829 [830 Button.inline("رجÙع", data="toolsed1")]]831 await event.edit(BRWAADV1, buttons=buttons, link_preview=False)832@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"CLIONEACMD")))833@check_owner834async def _(event):835 buttons = [836 [837 Button.inline("رجÙع", data="toolsed1")]]838 await event.edit(CLIONEACMD, buttons=buttons, link_preview=False)839@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIBACK")))840@check_owner841async def _(event):842 buttons = [843 [844 Button.inline("رجÙع", data="toolsed1")]]845 await event.edit(ALIBACK, buttons=buttons, link_preview=False)846@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"KSHFCMD")))847@check_owner848async def _(event):849 buttons = [850 [851 Button.inline("رجÙع", data="toolsed1")]]852 await event.edit(KSHFCMD, buttons=buttons, link_preview=False)853#854@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ADDTKLED")))855@check_owner856async def _(event):857 buttons = [858 [859 Button.inline("رجÙع", data="toolsed1")]]860 await event.edit(ADDTKLED, buttons=buttons, link_preview=False)861@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"STOPAZAG")))862@check_owner863async def _(event):864 buttons = [865 [866 Button.inline("رجÙع", data="toolsed1")]]867 await event.edit(STOPAZAG, buttons=buttons, link_preview=False)868##869@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TASLIACMD")))870@check_owner871async def _(event):872 buttons = [873 [874 Button.inline("اÙترÙÙÙ", data="TRFEHCMD"),875 Button.inline("اÙتسÙÙØ©", data="TSLEACMD"),876 ],877 [878 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")879 ]880 ]881 await event.edit(ROE, buttons=buttons, link_preview=False)882@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TSLEACMD")))883@check_owner884async def _(event):885 buttons = [886 [887 Button.inline("رجÙع", data="TASLIACMD")]]888 await event.edit(TSLEACMD, buttons=buttons, link_preview=False)889@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"TRFEHCMD")))890@check_owner891async def _(event):892 buttons = [893 [894 Button.inline("رجÙع", data="TASLIACMD")]]895 await event.edit(TRFEHCMD, buttons=buttons, link_preview=False)896@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"admincmd_s")))897@check_owner898async def _(event):899 buttons = [900 [901 Button.inline("Øظر", data="bancmd"),902 Button.inline("اÙغاء Øظر", data="unbancmd"),903 Button.inline("اÙÙ
ØظÙرÙÙ", data="ALIVEMHA"),904 ],905 [906 Button.inline("ÙتÙ
", data="ALIVEcatm"),907 Button.inline("اÙغاء ÙتÙ
", data="unmutecmd"),908 Button.inline("طرد", data="KICKCMD"),909 ],910 [911 Button.inline("تثبÙت", data="ALIVEbin"),912 Button.inline("اÙغاء اÙتثبÙت", data="ALIVEunbin"),913 Button.inline("رÙع Ù
شرÙ", data="ALIVEadmin"),914 ],915 [Button.inline("اÙتاÙÙ", data="admin2"),916 Button.inline("رجÙع", data="ADMSS4")917 ],918 [919 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")920 ]]921 await event.edit(ROE, buttons=buttons, link_preview=False)922@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"admin2")))923@check_owner924async def _(event):925 buttons = [926 [927 Button.inline("تÙزÙÙ Ù
شرÙ", data="ALIVEtnadmin"),928 Button.inline("Ùضع صÙرة", data="ALIVEsod"),929 Button.inline("Øذ٠اÙصÙرة", data="ALIVESOR"),930 ],931 [932 Button.inline("ارÙع", data="ALIVErfe"),933 Button.inline("ÙزÙ", data="ALIVEnzl"),934 Button.inline("اÙاØداث", data="ALIVEADV"),935 ],936 [937 Button.inline("تÙÙÙØ´", data="ALIVETFL"),938 Button.inline("تÙزÙ٠اÙÙÙ", data="ALIVEgma"),939 Button.inline("تØØ°Ùر", data="ALIVETHR"),940 ],941 [Button.inline("اÙتاÙÙ", data="admi3"),942 Button.inline("رجÙع", data="admincmd_s")943 ],944 [945 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")946 ]]947 await event.edit(ROE, buttons=buttons, link_preview=False)948@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETFL")))949@check_owner950async def _(event):951 buttons = [952 [953 Button.inline("رجÙع", data="admin2")]]954 await event.edit(ALIVETFL, buttons=buttons, link_preview=False)955@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"admi3")))956@check_owner957async def _(event):958 buttons = [959 [960 Button.inline("Øذ٠اÙتØØ°Ùرات", data="ALIVEunTHR"),961 Button.inline("اÙتØØ°Ùرات", data="ALIVETSV"),962 Button.inline("اضاÙØ© ترØÙب", data="ALIVETRSB"),963 ],964 [965 Button.inline("اÙÙا٠اÙترØÙب", data="ALIVEundf"),966 Button.inline("اÙترØÙبات", data="ALIVETRS"),967 Button.inline("Ù
Ùع ÙÙÙ
Ø©", data="ALMN3CMD"),968 ],969 [970 Button.inline("اÙغاء Ù
Ùع", data="A3ALMN3"),971 Button.inline("ÙائÙ
Ø© اÙÙ
Ùع", data="LISTBLCK"),972 Button.inline("Ù
Ø³Ø Ø§ÙÙ
ØظÙرÙÙ", data="UMBLCTR"),973 ],974 [Button.inline("اÙتاÙÙ", data="ADMSS4"),975 Button.inline("رجÙع", data="admin2")976 ],977 [978 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")979 ]]980 await event.edit(ROE, buttons=buttons, link_preview=False)981@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALMN3CMD")))982@check_owner983async def _(event):984 buttons = [985 [986 Button.inline("رجÙع", data="admi3")]]987 await event.edit(ALMN3CMD, buttons=buttons, link_preview=False)988@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ADMSS4")))989@check_owner990async def _(event):991 buttons = [992 [993 Button.inline("اضاÙØ© رد", data="RDAJFDA"),994 Button.inline("اÙÙا٠رد", data="RSTOPRD"),995 Button.inline("Øذ٠اÙردÙد", data="ALLRDSTOP"),996 ],997 [998 Button.inline("اÙردÙد", data="ALLRD5"),999 Button.inline("اØصائÙات", data="ALMSHRFE1"),1000 Button.inline("اطردÙÙ", data="MELICLW"),1001 ],1002 [1003 Button.inline("اÙÙ
ØØ°ÙÙÙÙ", data="ACCD5SS"),1004 Button.inline("ضع اÙتÙرار", data="ALTKRARCMD"),1005 ],1006 [Button.inline("اÙتاÙÙ", data="admincmd_s"),1007 Button.inline("رجÙع", data="admi3")1008 ],1009 [1010 Button.inline("اÙÙائÙ
Ø© اÙرئÙسÙØ©", data="MAIN")1011 ]]1012 await event.edit(ROE, buttons=buttons, link_preview=False)1013@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALTKRARCMD")))1014@check_owner1015async def _(event):1016 buttons = [1017 [1018 Button.inline("رجÙع", data="ADMSS4")]]1019 await event.edit(ALTKRARCMD, buttons=buttons, link_preview=False)1020@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ACCD5SS")))1021@check_owner1022async def _(event):1023 buttons = [1024 [1025 Button.inline("رجÙع", data="ADMSS4")]]1026 await event.edit(ACCD5SS, buttons=buttons, link_preview=False)1027@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALMSHRFE1")))1028@check_owner1029async def _(event):1030 buttons = [1031 [1032 Button.inline("رجÙع", data="ADMSS4")]]1033 await event.edit(ALMSHRFE1, buttons=buttons, link_preview=False)1034@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETRS")))1035@check_owner1036async def _(event):1037 buttons = [1038 [1039 Button.inline("رجÙع", data="ADMSS4")]]1040 await event.edit(ALIVETRS, buttons=buttons, link_preview=False)1041@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"MELICLW")))1042@check_owner1043async def _(event):1044 buttons = [1045 [1046 Button.inline("رجÙع", data="ADMSS4")]]1047 await event.edit(MELICLW, buttons=buttons, link_preview=False)1048@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALLRD5")))1049@check_owner1050async def _(event):1051 buttons = [1052 [1053 Button.inline("رجÙع", data="ADMSS4")]]1054 await event.edit(ALLRD5, buttons=buttons, link_preview=False)1055@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALLRDSTOP")))1056@check_owner1057async def _(event):1058 buttons = [1059 [1060 Button.inline("رجÙع", data="ADMSS4")]]1061 await event.edit(ALLRDSTOP, buttons=buttons, link_preview=False)1062@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"RSTOPRD")))1063@check_owner1064async def _(event):1065 buttons = [1066 [1067 Button.inline("رجÙع", data="ADMSS4")]]1068 await event.edit(RSTOPRD, buttons=buttons, link_preview=False)1069@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"RDAJFDA")))1070@check_owner1071async def _(event):1072 buttons = [1073 [1074 Button.inline("رجÙع", data="ADMSS4")]]1075 await event.edit(RDAJFDA, buttons=buttons, link_preview=False)1076@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"UMBLCTR")))1077@check_owner1078async def _(event):1079 buttons = [1080 [1081 Button.inline("رجÙع", data="admi3")]]1082 await event.edit(UMBLCTR, buttons=buttons, link_preview=False)1083@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"LISTBLCK")))1084@check_owner1085async def _(event):1086 buttons = [1087 [1088 Button.inline("رجÙع", data="admi3")]]1089 await event.edit(LISTBLCK, buttons=buttons, link_preview=False)1090@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"A3ALMN3")))1091@check_owner1092async def _(event):1093 buttons = [1094 [1095 Button.inline("رجÙع", data="admi3")]]1096 await event.edit(A3ALMN3, buttons=buttons, link_preview=False)1097@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETRS")))1098@check_owner1099async def _(event):1100 buttons = [1101 [1102 Button.inline("رجÙع", data="admi3")]]1103 await event.edit(ALIVETRS, buttons=buttons, link_preview=False)1104@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEundf")))1105@check_owner1106async def _(event):1107 buttons = [1108 [1109 Button.inline("رجÙع", data="admi3")]]1110 await event.edit(ALIVEundf, buttons=buttons, link_preview=False)1111@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETRSB")))1112@check_owner1113async def _(event):1114 buttons = [1115 [1116 Button.inline("رجÙع", data="admi3")]]1117 await event.edit(ALIVETRSB, buttons=buttons, link_preview=False)1118@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETSV")))1119@check_owner1120async def _(event):1121 buttons = [1122 [1123 Button.inline("رجÙع", data="admi3")]]1124 await event.edit(ALIVETSV, buttons=buttons, link_preview=False)1125@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEunTHR")))1126@check_owner1127async def _(event):1128 buttons = [1129 [1130 Button.inline("رجÙع", data="admi3")]]1131 await event.edit(ALIVEunTHR, buttons=buttons, link_preview=False)1132@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVETHR")))1133@check_owner1134async def _(event):1135 buttons = [1136 [1137 Button.inline("رجÙع", data="admin2")]]1138 await event.edit(ALIVETHR, buttons=buttons, link_preview=False)1139@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEgma")))1140@check_owner1141async def _(event):1142 buttons = [1143 [1144 Button.inline("رجÙع", data="admin2")]]1145 await event.edit(ALIVEgma, buttons=buttons, link_preview=False)1146@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEADV")))1147@check_owner1148async def _(event):1149 buttons = [1150 [1151 Button.inline("رجÙع", data="admin2")]]1152 await event.edit(ALIVEADV, buttons=buttons, link_preview=False)1153@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVErfe")))1154@check_owner1155async def _(event):1156 buttons = [1157 [1158 Button.inline("رجÙع", data="admin2")]]1159 await event.edit(ALIVErfe, buttons=buttons, link_preview=False)1160@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEnzl")))1161@check_owner1162async def _(event):1163 buttons = [1164 [1165 Button.inline("رجÙع", data="admin2")]]1166 await event.edit(ALIVEnzl, buttons=buttons, link_preview=False)1167@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVESOR")))1168@check_owner1169async def _(event):1170 buttons = [1171 [1172 Button.inline("رجÙع", data="admin2")]]1173 await event.edit(ALIVESOR, buttons=buttons, link_preview=False)1174@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEsod")))1175@check_owner1176async def _(event):1177 buttons = [1178 [1179 Button.inline("رجÙع", data="admin2")]]1180 await event.edit(ALIVEsod, buttons=buttons, link_preview=False)1181@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEtnadmin")))1182@check_owner1183async def _(event):1184 buttons = [1185 [1186 Button.inline("رجÙع", data="admin2")]]1187 await event.edit(ALIVEtnadmin, buttons=buttons, link_preview=False)1188@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEbin")))1189@check_owner1190async def _(event):1191 buttons = [1192 [1193 Button.inline("رجÙع", data="admincmd_s")]]1194 await event.edit(ALIVEbin, buttons=buttons, link_preview=False)1195@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEunbin")))1196@check_owner1197async def _(event):1198 buttons = [1199 [1200 Button.inline("رجÙع", data="admincmd_s")]]1201 await event.edit(ALIVEunbin, buttons=buttons, link_preview=False)1202@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEadmin")))1203@check_owner1204async def _(event):1205 buttons = [1206 [1207 Button.inline("رجÙع", data="admincmd_s")]]1208 await event.edit(ALIVEadmin, buttons=buttons, link_preview=False)1209@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"KICKCMD")))1210@check_owner1211async def _(event):1212 buttons = [1213 [1214 Button.inline("رجÙع", data="admincmd_s")]]1215 await event.edit(KICKCMD, buttons=buttons, link_preview=False)1216@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEMHA")))1217@check_owner1218async def _(event):1219 buttons = [1220 [1221 Button.inline("رجÙع", data="admincmd_s")]]1222 await event.edit(ALIVEMHA, buttons=buttons, link_preview=False)1223@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"bancmd")))1224@check_owner1225async def _(event):1226 buttons = [1227 [1228 Button.inline("رجÙع", data="admincmd_s")]]1229 await event.edit(ALIVEBand, buttons=buttons, link_preview=False)1230@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"unbancmd")))1231@check_owner1232async def _(event):1233 buttons = [1234 [1235 Button.inline("رجÙع", data="admincmd_s")]]1236 await event.edit(ALIVEunban, buttons=buttons, link_preview=False)1237@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"ALIVEcatm")))1238@check_owner1239async def _(event):1240 buttons = [1241 [1242 Button.inline("رجÙع", data="admincmd_s")]]1243 await event.edit(ALIVEcatm, buttons=buttons, link_preview=False)1244@sbb_b.tgbot.on(CallbackQuery(data=re.compile(rb"unmutecmd")))1245@check_owner1246async def _(event):1247 buttons = [1248 [1249 Button.inline("رجÙع", data="admincmd_s")]]...
common.py
Source:common.py
1from functools import wraps2from flask.ext.login import current_user3from equanimity.stronghold import Stronghold4from equanimity.units import Unit5from equanimity.battle import Battle6from equanimity.field import Field7from equanimity.worldtools import get_world as _get_world8def get_thing(cls, ids, name=None, check_owner=True, getter='get'):9 if name is None:10 name = cls.__name__11 thing = getattr(cls, getter)(*ids)12 if thing is None:13 ids = [getattr(id, 'uid', id) for id in ids]14 raise ValueError('Invalid {name} {ids}'.format(name=name, ids=ids))15 if check_owner and thing.owner != current_user._get_current_object():16 raise ValueError('You do not own this {name}'.format(name=name))17 return thing18def unpack_world(f):19 @wraps(f)20 def wrapped(world_id, *args, **kwargs):21 return f(get_world(world_id), *args, **kwargs)22 return wrapped23def get_world(world_id, **kwargs):24 w = _get_world(world_id)25 if w is None:26 raise ValueError('Unknown world {0}'.format(world_id))27 if not w.players.has(current_user._get_current_object()):28 raise ValueError('You are not in this world')29 return w30@unpack_world31def get_field(world, field_location, **kwargs):32 # TODO -- make sure field is visible for the requesting user33 kwargs['check_owner'] = False34 return get_thing(Field, (world, field_location), **kwargs)35@unpack_world36def get_stronghold(world, field_location, **kwargs):37 return get_thing(Stronghold, (world, field_location), **kwargs)38def _check_battle_participants(battle, check_owner=True):39 user = current_user._get_current_object()40 if (battle is not None and battle.defender != user and check_owner and41 battle.attacker != user):42 raise ValueError('You are not involved this battle')43@unpack_world44def get_battle(world, field_location, check_owner=True, **kwargs):45 kwargs['check_owner'] = False46 battle = get_thing(Battle, (world, field_location), **kwargs)47 _check_battle_participants(battle, check_owner=check_owner)48 return battle49def get_battle_by_id(uid, check_owner=True, **kwargs):50 kwargs['check_owner'] = False51 kwargs['getter'] = 'get_by_uid'52 battle = get_thing(Battle, (uid,), **kwargs)53 _check_battle_participants(battle, check_owner=check_owner)54 return battle55def get_unit(uid, **kwargs):...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!