Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

remottxrea

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remottxrea - npm Package Compare versions

Comparing version
1.0.95
to
1.0.96
+1
-1
PKG-INFO
Metadata-Version: 2.4
Name: remottxrea
Version: 1.0.95
Version: 1.0.96
Summary: Remote client framework for Telegram automation using Pyrogram

@@ -5,0 +5,0 @@ Home-page: https://github.com/MohammadAhmadi-R/remottxrea

@@ -7,3 +7,3 @@ [build-system]

name = "remottxrea"
version = "1.0.95"
version = "1.0.96"
description = "Remote client framework for Telegram automation using Pyrogram"

@@ -10,0 +10,0 @@ readme = "README.md"

Metadata-Version: 2.4
Name: remottxrea
Version: 1.0.95
Version: 1.0.96
Summary: Remote client framework for Telegram automation using Pyrogram

@@ -5,0 +5,0 @@ Home-page: https://github.com/MohammadAhmadi-R/remottxrea

@@ -8,3 +8,3 @@ from setuptools import setup, find_packages

name="remottxrea",
version="1.0.95",
version="1.0.96",
author="MrAhmadiRad",

@@ -11,0 +11,0 @@ author_email="mohammadahmadirad69@gmail.com",

@@ -14,6 +14,7 @@ # remottxrea/bot/main_bot.py

# ==========================================================
# CREATE BOT CLIENT
# ==========================================================
def create_app() -> Client:
"""
Create Pyrogram Client
"""

@@ -34,22 +35,28 @@ if not main_config.BOT_TOKEN:

api_hash=main_config.API_HASH,
workers=1 # جلوگیری از race
)
# ==========================================================
# STARTUP LOGIC
# ==========================================================
async def startup():
"""
Load sessions and start watcher
"""
print("🔄 Loading sessions...")
# فقط load_all داریم — watcher حذف شده
await router.registry.runner.load_all()
await router.registry.runner.start_watcher()
print("🚀 Realtime session watcher enabled")
print("✅ Session pool ready")
# ==========================================================
# ENTRY POINT
# ==========================================================
def run():
"""
Entry point
"""
app = create_app()
# 🔥 only admin messages go to router
@app.on_message(filters.private)

@@ -59,7 +66,14 @@ async def on_message(client: Client, message: Message):

app.loop.run_until_complete(startup())
app.run()
async def main():
await startup()
await app.start()
print("🚀 Bot started")
await idle()
from pyrogram import idle
asyncio.run(main())
if __name__ == "__main__":
run()