This repository has been archived on 2024-08-21. You can view files and clone it, but cannot push or open issues or pull requests.
TelegramPoster/plugins/commands/photos.py

30 lines
918 B
Python
Raw Normal View History

2023-02-17 17:46:13 +02:00
from pyrogram import filters
from pyrogram.types import Message
from classes.poster_client import PosterClient
2023-02-17 17:46:13 +02:00
from modules.app import app
2023-03-09 12:33:02 +02:00
@app.on_message(~filters.scheduled & filters.command(["import"], prefixes=["", "/"]))
2023-02-17 17:46:13 +02:00
async def cmd_import(app: PosterClient, msg: Message):
2023-02-17 22:55:38 +02:00
if msg.from_user.id in app.admins:
2023-02-17 17:46:13 +02:00
pass
2023-03-09 12:33:02 +02:00
@app.on_message(~filters.scheduled & filters.command(["export"], prefixes=["", "/"]))
2023-02-17 17:46:13 +02:00
async def cmd_export(app: PosterClient, msg: Message):
2023-02-26 00:19:08 +02:00
if msg.from_user.id in app.admins:
pass
2023-03-09 12:33:02 +02:00
@app.on_message(~filters.scheduled & filters.command(["remove"], prefixes=["", "/"]))
2023-02-26 00:19:08 +02:00
async def cmd_remove(app: PosterClient, msg: Message):
if msg.from_user.id in app.admins:
pass
2023-03-09 12:33:02 +02:00
@app.on_message(~filters.scheduled & filters.command(["purge"], prefixes=["", "/"]))
2023-02-26 00:19:08 +02:00
async def cmd_purge(app: PosterClient, msg: Message):
2023-02-17 22:55:38 +02:00
if msg.from_user.id in app.admins:
2023-03-09 12:33:02 +02:00
pass