Удалены лишние сообщения при присоединении/исключении участника в неактивном чате.
This commit is contained in:
parent
d8338b0351
commit
70e5961069
1 changed files with 0 additions and 2 deletions
|
|
@ -13,7 +13,6 @@ async def user_join_handler(message: Message):
|
|||
chat_id = message.chat.id
|
||||
chat = database.DB.create_chat_if_not_exists(chat_id)
|
||||
if chat['active'] == 0:
|
||||
await message.answer(MESSAGE_CHAT_NOT_ACTIVE)
|
||||
return
|
||||
|
||||
for member in message.new_chat_members:
|
||||
|
|
@ -30,7 +29,6 @@ async def user_join_handler(message: Message):
|
|||
chat_id = message.chat.id
|
||||
chat = database.DB.create_chat_if_not_exists(chat_id)
|
||||
if chat['active'] == 0:
|
||||
await message.answer(MESSAGE_CHAT_NOT_ACTIVE)
|
||||
return
|
||||
|
||||
member = message.left_chat_member
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue