-
Notifications
You must be signed in to change notification settings - Fork 66
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (26 loc) · 893 Bytes
/
main.py
File metadata and controls
35 lines (26 loc) · 893 Bytes
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
# ============================================================
#Group Manager Bot
# Author: LearningBotsOfficial (https://github.com/LearningBotsOfficial)
# Support: https://t.me/LearningBotsCommunity
# Channel: https://t.me/learning_bots
# YouTube: https://youtube.com/@learning_bots
# License: Open-source (keep credits, no resale)
# ============================================================
from pyrogram import Client
from config import API_ID, API_HASH, BOT_TOKEN
import logging
# 🔐 Import security
from security import verify_integrity, get_runtime_key
logging.basicConfig(level=logging.INFO)
verify_integrity()
RUNTIME_KEY = get_runtime_key()
app = Client(
"group_manager_bot",
api_id=API_ID,
api_hash=API_HASH,
bot_token=BOT_TOKEN
)
from handlers import register_all_handlers
register_all_handlers(app)
print("✅ Bot is starting securely...")
app.run()