From 57518399a1dbe0e737eebfe3a896f10cee5fc4a4 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Thu, 5 Jan 2023 20:46:04 +0100 Subject: [PATCH] Sponsorship handler removed --- holochecker.py | 1 - modules/handlers/sponsorship.py | 16 ---------------- 2 files changed, 17 deletions(-) delete mode 100644 modules/handlers/sponsorship.py diff --git a/holochecker.py b/holochecker.py index e7b9859..da72662 100644 --- a/holochecker.py +++ b/holochecker.py @@ -41,7 +41,6 @@ from modules.handlers.contact import * from modules.handlers.group_join import * from modules.handlers.voice import * from modules.handlers.welcome import * -from modules.handlers.sponsorship import * from modules.handlers.everything import * from modules.scheduled import * diff --git a/modules/handlers/sponsorship.py b/modules/handlers/sponsorship.py deleted file mode 100644 index 4021cf0..0000000 --- a/modules/handlers/sponsorship.py +++ /dev/null @@ -1,16 +0,0 @@ -from app import app -from pyrogram import filters -from pyrogram.types import Message -from pyrogram.client import Client -from classes.holo_user import HoloUser -from modules import custom_filters - -@app.on_message(custom_filters.enabled_sponsorships & custom_filters.filling_sponsorship & ~filters.scheduled & filters.private) -async def sponsor_proof(app: Client, msg: Message): - - if msg.via_bot is None: - - holo_user = HoloUser(msg.from_user) - - if msg.photo is not None: - await holo_user.sponsorship_next(msg.text, msg=msg, photo=msg.photo) \ No newline at end of file