dev #19
@ -5,6 +5,8 @@
|
|||||||
},
|
},
|
||||||
"commands_admin": {
|
"commands_admin": {
|
||||||
"forwards": "Check post forwards",
|
"forwards": "Check post forwards",
|
||||||
|
"import": "Submit .zip archive with photos",
|
||||||
|
"export": "Get .zip archive with all photos",
|
||||||
"reboot": "Restart the bot"
|
"reboot": "Restart the bot"
|
||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
},
|
},
|
||||||
"commands_admin": {
|
"commands_admin": {
|
||||||
"forwards": "Переглянути репости",
|
"forwards": "Переглянути репости",
|
||||||
|
"import": "Надати боту .zip архів з фотографіями",
|
||||||
|
"export": "Отримати .zip архів з усіма фотографіями",
|
||||||
"reboot": "Перезапустити бота"
|
"reboot": "Перезапустити бота"
|
||||||
},
|
},
|
||||||
"message": {
|
"message": {
|
||||||
|
23
plugins/commands/photos.py
Normal file
23
plugins/commands/photos.py
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
from os import getpid
|
||||||
|
|
||||||
|
from pyrogram import filters
|
||||||
|
from classes.poster_client import PosterClient
|
||||||
|
from pyrogram.types import Message
|
||||||
|
|
||||||
|
from modules.app import app
|
||||||
|
from modules.logger import logWrite
|
||||||
|
from modules.utils import configGet, killProc, locale
|
||||||
|
|
||||||
|
|
||||||
|
@app.on_message(~ filters.scheduled & filters.command(["import"], prefixes=["", "/"]))
|
||||||
|
async def cmd_import(app: PosterClient, msg: Message):
|
||||||
|
|
||||||
|
if msg.from_user.id == configGet("admin"):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
@app.on_message(~ filters.scheduled & filters.command(["export"], prefixes=["", "/"]))
|
||||||
|
async def cmd_export(app: PosterClient, msg: Message):
|
||||||
|
|
||||||
|
if msg.from_user.id == configGet("admin"):
|
||||||
|
pass
|
Reference in New Issue
Block a user