Spaces:
Sleeping
Sleeping
Update code2.py
Browse files
code2.py
CHANGED
@@ -7,9 +7,9 @@ from datetime import datetime, timedelta
|
|
7 |
from telethon import TelegramClient, events
|
8 |
from telethon.tl.types import ChatAdminRights, ChatBannedRights
|
9 |
|
10 |
-
API_ID =
|
11 |
-
API_HASH =
|
12 |
-
BOT_TOKEN = os.
|
13 |
|
14 |
logging.basicConfig(
|
15 |
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|
|
|
7 |
from telethon import TelegramClient, events
|
8 |
from telethon.tl.types import ChatAdminRights, ChatBannedRights
|
9 |
|
10 |
+
API_ID = os.getenv("API_ID")
|
11 |
+
API_HASH = os.getenv("API_HASH")
|
12 |
+
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
13 |
|
14 |
logging.basicConfig(
|
15 |
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
|