Update bot.py
Browse files
bot.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import os, math, logging, datetime, pytz, logging.config
|
|
|
2 |
from aiohttp import web
|
3 |
from pyrogram import Client, types
|
4 |
from database.users_chats_db import db
|
@@ -6,7 +7,6 @@ from database.ia_filterdb import Media
|
|
6 |
from typing import Union, Optional, AsyncGenerator
|
7 |
from utils import temp, __repo__, __license__, __copyright__, __version__
|
8 |
from info import API_ID, API_HASH, BOT_TOKEN, LOG_CHANNEL, UPTIME, WEB_SUPPORT, LOG_MSG
|
9 |
-
import asyncio
|
10 |
|
11 |
# Get logging configurations
|
12 |
logging.config.fileConfig("logging.conf")
|
@@ -83,6 +83,4 @@ class Bot(Client):
|
|
83 |
current += 1
|
84 |
logger.info(f"Yielding message with ID: {message.id}")
|
85 |
|
86 |
-
|
87 |
-
bot = Bot()
|
88 |
-
asyncio.run(bot.start())
|
|
|
1 |
import os, math, logging, datetime, pytz, logging.config
|
2 |
+
|
3 |
from aiohttp import web
|
4 |
from pyrogram import Client, types
|
5 |
from database.users_chats_db import db
|
|
|
7 |
from typing import Union, Optional, AsyncGenerator
|
8 |
from utils import temp, __repo__, __license__, __copyright__, __version__
|
9 |
from info import API_ID, API_HASH, BOT_TOKEN, LOG_CHANNEL, UPTIME, WEB_SUPPORT, LOG_MSG
|
|
|
10 |
|
11 |
# Get logging configurations
|
12 |
logging.config.fileConfig("logging.conf")
|
|
|
83 |
current += 1
|
84 |
logger.info(f"Yielding message with ID: {message.id}")
|
85 |
|
86 |
+
Bot().run()
|
|
|
|