feature/chat-system #2

Merged
trevor merged 28 commits from feature/chat-system into master 2025-11-17 06:05:49 +00:00
14 changed files with 980 additions and 258 deletions
Showing only changes of commit 27db838b32 - Show all commits

1
.bot.pid Normal file
View File

@@ -0,0 +1 @@
843174

View File

@@ -1347,13 +1347,9 @@ async def process_bulk_add_accounts(message: Message, state: FSMContext):
data = await state.get_data()
lottery_id = data['bulk_add_accounts_lottery_id']
# Парсим входные данные - поддерживаем и запятые, и переносы строк
account_inputs = []
for line in message.text.split('\n'):
for account in line.split(','):
account = account.strip()
if account:
account_inputs.append(account)
# Используем функцию парсинга из account_utils для корректной обработки формата "КАРТА СЧЕТ"
from ..utils.account_utils import parse_accounts_from_message
account_inputs = parse_accounts_from_message(message.text)
async with async_session_maker() as session:
# Массовое добавление по номерам счетов
@@ -1476,13 +1472,9 @@ async def process_bulk_remove_accounts(message: Message, state: FSMContext):
data = await state.get_data()
lottery_id = data['bulk_remove_accounts_lottery_id']
# Парсим входные данные - поддерживаем и запятые, и переносы строк
account_inputs = []
for line in message.text.split('\n'):
for account in line.split(','):
account = account.strip()
if account:
account_inputs.append(account)
# Используем функцию парсинга из account_utils для корректной обработки формата "КАРТА СЧЕТ"
from ..utils.account_utils import parse_accounts_from_message
account_inputs = parse_accounts_from_message(message.text)
async with async_session_maker() as session:
# Массовое удаление по номерам счетов