From 08f48ebb72c98247952d0d356f24b1ae07b01aff Mon Sep 17 00:00:00 2001 From: "Dr.Caduceus" Date: Mon, 13 Nov 2023 11:50:08 +0530 Subject: [PATCH] Bump to v1.5 --- bot/__init__.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/bot/__init__.py b/bot/__init__.py index aa3c9c0..d95b009 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -1,19 +1,15 @@ -from pyrogram import Client +from telethon import TelegramClient from logging import getLogger from logging.config import dictConfig from .config import Telegram, LOGGER_CONFIG_JSON dictConfig(LOGGER_CONFIG_JSON) -version = 1.4 +version = 1.2 logger = getLogger('bot') -TelegramBot = Client( - name="bot", - api_id = Telegram.API_ID, - api_hash = Telegram.API_HASH, - bot_token = Telegram.BOT_TOKEN, - plugins={"root": "bot/plugins"}, - workers = Telegram.BOT_WORKERS, - max_concurrent_transmissions=1000 +TelegramBot = TelegramClient( + session='bot', + api_id=Telegram.API_ID, + api_hash=Telegram.API_HASH )