diff --git a/database/greetings_db.py b/database/greetings_db.py index 38554926..6eb64d6c 100644 --- a/database/greetings_db.py +++ b/database/greetings_db.py @@ -8,7 +8,9 @@ async def is_welcome(chat_id: int) -> bool: async def toggle_welcome(chat_id: int): if await is_welcome(chat_id): await greetingdb.delete_one({"chat_id": chat_id}) + return False else: await greetingdb.insert_one({"chat_id": chat_id}) + return True # todo other features for custom welcome here