From 25af9b31f8c2243f1c963c03494d2ca40efe659a Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Fri, 17 Feb 2023 16:46:33 +0100 Subject: [PATCH] Changed Client to PosterClient --- modules/commands_register.py | 4 ++-- plugins/callbacks/nothing.py | 4 ++-- plugins/commands/general.py | 4 ++-- plugins/commands/mode_submit.py | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/commands_register.py b/modules/commands_register.py index ed84b86..4132522 100644 --- a/modules/commands_register.py +++ b/modules/commands_register.py @@ -1,9 +1,9 @@ from os import listdir -from pyrogram.client import Client +from classes.poster_client import PosterClient from pyrogram.types import BotCommand, BotCommandScopeChat from modules.utils import configGet, locale -async def register_commands(app: Client): +async def register_commands(app: PosterClient): if configGet("submit", "mode"): # Registering user commands diff --git a/plugins/callbacks/nothing.py b/plugins/callbacks/nothing.py index 8af1e02..7052b06 100644 --- a/plugins/callbacks/nothing.py +++ b/plugins/callbacks/nothing.py @@ -1,11 +1,11 @@ from modules.app import app from pyrogram import filters from pyrogram.types import CallbackQuery -from pyrogram.client import Client +from classes.poster_client import PosterClient from modules.utils import locale # Callback empty =============================================================================================================== @app.on_callback_query(filters.regex("nothing")) -async def callback_query_nothing(app: Client, clb: CallbackQuery): +async def callback_query_nothing(app: PosterClient, clb: CallbackQuery): await clb.answer(text=locale("nothing", "callback", locale=clb.from_user)) # ============================================================================================================================== \ No newline at end of file diff --git a/plugins/commands/general.py b/plugins/commands/general.py index 01b42eb..9df1e59 100644 --- a/plugins/commands/general.py +++ b/plugins/commands/general.py @@ -1,7 +1,7 @@ from os import getpid from pyrogram import filters -from pyrogram.client import Client +from classes.poster_client import PosterClient from pyrogram.types import Message from modules.app import app @@ -10,7 +10,7 @@ from modules.utils import configGet, killProc, locale @app.on_message(~ filters.scheduled & filters.command(["kill", "die", "reboot"], prefixes=["", "/"])) -async def cmd_kill(app: Client, msg: Message): +async def cmd_kill(app: PosterClient, msg: Message): if msg.from_user.id == configGet("admin"): pid = getpid() diff --git a/plugins/commands/mode_submit.py b/plugins/commands/mode_submit.py index ae81d60..5181355 100644 --- a/plugins/commands/mode_submit.py +++ b/plugins/commands/mode_submit.py @@ -1,5 +1,5 @@ from pyrogram import filters -from pyrogram.client import Client +from classes.poster_client import PosterClient from pyrogram.types import Message from modules.app import app @@ -8,11 +8,11 @@ from modules.utils import configGet, jsonLoad, locale @app.on_message(~ filters.scheduled & filters.command(["start"], prefixes="/")) -async def cmd_start(app: Client, msg: Message): +async def cmd_start(app: PosterClient, msg: Message): if subBlocked(msg.from_user) is False: await msg.reply_text(locale("start", "message", locale=msg.from_user.language_code)) @app.on_message(~ filters.scheduled & filters.command(["rules", "help"], prefixes="/")) -async def cmd_rules(app: Client, msg: Message): +async def cmd_rules(app: PosterClient, msg: Message): if subBlocked(msg.from_user) is False: await msg.reply_text(locale("rules", "message", locale=msg.from_user.language_code)) \ No newline at end of file