add mailing function
This commit is contained in:
@@ -3,6 +3,7 @@ from aiogram_dialog.widgets.kbd import Button, Start
|
||||
from aiogram_dialog.widgets.text import Const, Format
|
||||
|
||||
from app.bot.dialogs.flows.events.dialogs import EventsSG
|
||||
from app.bot.dialogs.flows.mailing.dialogs import MailingSG
|
||||
from app.bot.dialogs.flows.new_event.dialogs import NewEventSG
|
||||
from app.bot.dialogs.flows.profile.dialogs import ProfileSG
|
||||
from app.bot.dialogs.widgets.getters import is_admin_getter, user_getter
|
||||
@@ -19,6 +20,12 @@ start_dialog = Dialog(
|
||||
state=NewEventSG.input_title,
|
||||
when="is_admin",
|
||||
),
|
||||
Start(
|
||||
Const("📧 разослать сообщение"),
|
||||
id="create_mailing",
|
||||
state=MailingSG.message_data,
|
||||
when="is_admin",
|
||||
),
|
||||
Start(Const("👤 профиль"), id="profile", state=ProfileSG.profile),
|
||||
getter=[user_getter, is_admin_getter],
|
||||
state=StartSG.start,
|
||||
|
||||
Reference in New Issue
Block a user