Restore post command

This commit is contained in:
2024-02-15 12:17:19 +03:00
parent 77a916dc0b
commit 63c1b58fc9
3 changed files with 30 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ from handlers.message_handlers.newpost_command import (NewPostCommand,
from handlers.message_handlers.post_command import PostCommand
from handlers.message_handlers.preview_command import PreviewCommand
from handlers.message_handlers.reply_to_user import ReplyToUserCommand
from handlers.message_handlers.restore_command import RestoreCommand
from handlers.message_handlers.settings_command import SettingsCommand
from handlers.message_handlers.update_settings import UpdateSettingsCommand
from handlers.middlewares.media_group import MediaGroupMiddleware
@@ -29,6 +30,7 @@ class AdminCommands(Handler):
(UpdateSettingsCommand, PostCommand(self.bot).handler),
EditCommand,
PostCommand,
RestoreCommand,
SettingsCommand,
])
self.router.message.middleware(MediaGroupMiddleware())