НАСТРОЙКА ГРУППОВОЙ
This commit is contained in:
1 parent
8eaf622b9d
commit
b73f17c762
7 files changed
+309
-6
No files matched your search
+19
-1
@@ -4,7 +4,7 @@ from random import choices
|
||||
|
||||
from vars import *
|
||||
from config import *
|
||||
from helpers import get_user_config, set_user_setting
|
||||
from helpers import get_user_config, set_user_setting, set_group_setting
|
||||
|
||||
from aiogram.types import (
|
||||
InlineKeyboardButton,
|
||||
@@ -152,4 +152,22 @@ async def da(bot, message, user_id):
|
||||
]
|
||||
)
|
||||
)
|
||||
elif alo_command[user_id]["action"] == "g_prompt":
|
||||
alo_command[user_id]["action"] = None
|
||||
set_group_setting(alo_command[user_id]["group_id"], post_prompt=message.text[:1000])
|
||||
|
||||
return await bot.edit_message_text(
|
||||
text="промпт для постов канала обновлён✅",
|
||||
chat_id=alo_command[user_id]["chat_id"],
|
||||
message_id=alo_command[user_id]["message_id"],
|
||||
reply_markup=InlineKeyboardMarkup(
|
||||
inline_keyboard=[
|
||||
[
|
||||
InlineKeyboardButton(
|
||||
text="⬅️ назад", callback_data=f"gcancel%{alo_command[user_id]['group_id']}%{user_id}"
|
||||
),
|
||||
],
|
||||
]
|
||||
)
|
||||
)
|
||||
return None
|
||||
Reference in new issue
Block a user