2 841
ارسلولي ادوات افكها مايزيد حجمها عن ٥٠٠ كيلوبايت
@JOKER_TWASOL_BOT
20 6月 2024, 06:33
08 4月 2025, ~11:58
# Rections Stories
async def RECATIONS_STORES(session: str ,chat_id: str, stories_id: int, rections: list):
status , ErrorCode = None, None
# Start Pyro App
app = Client(':memory:', api_hash=config.API_HASH, api_id=config.API_ID, session_string=session, in_memory=True, workers=2, no_updates=True)
# Start Pyrogram Client
try:
await app.connect()
me = await app.get_me()
except Exception as e:
status = False
ErrorCode = 'ACCOUNT_CONNECT'
await app.disconnect()
return (status, ErrorCode)
# Rections Message
try:
await app.send_reaction(chat_id=chat_id, story_id=stories_id, emoji=random.choice(rections))
except Exception as e:
await app.disconnect()
status = False
ErrorCode = 'RECTION_ERROR'
return (status, ErrorCode)
await app.disconnect()
status = True
return (status, ErrorCode)
Moduls :pip install pyrofork
↫︙Dev : @R_AFX ↫︙CH @radfx2 ✔️
我们使用 cookie 来改善您的浏览体验。
点击“全部接受”,即表示您同意Cookie 使用政策。