from app import app from pyrogram import filters from classes.holo_user import HoloUser @app.on_message(~ filters.scheduled & filters.photo & filters.private) async def sponsor_proof(app, msg): if msg.via_bot is None: holo_user = HoloUser(msg.from_user) await holo_user.sponsorship_next(msg.text, msg=msg, photo=msg.photo)