This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Telegram/modules/handlers/sponsorship.py

13 lines
359 B
Python
Raw Normal View History

2022-12-21 13:25:47 +02:00
from app import app
from pyrogram import filters
2022-12-22 16:05:27 +02:00
from classes.holo_user import HoloUser
2022-12-21 13:25:47 +02:00
@app.on_message(~ filters.scheduled & filters.photo & filters.private)
async def sponsor_proof(app, msg):
2022-12-22 16:05:27 +02:00
if msg.via_bot is None:
holo_user = HoloUser(msg.from_user)
await holo_user.sponsorship_next(msg.text, msg=msg, photo=msg.photo)