15 lines
517 B
Python
15 lines
517 B
Python
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 & ~filters.scheduled & filters.photo & filters.private)
|
|
async def sponsor_proof(app: Client, msg: Message):
|
|
|
|
if msg.via_bot is None:
|
|
|
|
holo_user = HoloUser(msg.from_user)
|
|
|
|
await holo_user.sponsorship_next(msg.text, msg=msg, photo=msg.photo) |