1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-12-15 08:06:17 +00:00

mailing second iteration

This commit is contained in:
er8dd
2024-03-02 16:59:41 +04:00
parent f26958518c
commit 120fdef189
9 changed files with 611 additions and 265 deletions

View File

@@ -229,6 +229,8 @@ async def handle_operator_message(message: types.Message, super_chat_id: int, bo
elif super_chat_id > 0:
# в супер-чате кто-то пишет сообщение сам себе, только для личных сообщений
if bot.enable_mailing:
asyncio.create_task(MailingUser.get_or_create(telegram_id=message.chat.id, bot=bot))
await message.forward(super_chat_id)
# И отправить пользователю специальный текст, если он указан
if bot.second_text: