From b345a5d776d7a6598ae7603487ac1a7cd3315004 Mon Sep 17 00:00:00 2001 From: Profitroll <47523801+profitrollgame@users.noreply.github.com> Date: Sun, 18 Dec 2022 17:54:58 +0100 Subject: [PATCH] Added voice message logging --- modules/handlers/voice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/handlers/voice.py b/modules/handlers/voice.py index eb4104b..47fdb1c 100644 --- a/modules/handlers/voice.py +++ b/modules/handlers/voice.py @@ -1,8 +1,10 @@ from random import choice from app import app from pyrogram import filters +from modules.logging import logWrite from modules.utils import configGet, locale @app.on_message(~ filters.scheduled & filters.voice & filters.chat(configGet("destination_group"))) async def voice_message(app, msg): + logWrite(f"User {msg.from_user.id} sent voice message in destination group") await msg.reply_text(choice(locale("voice_message", "message"))) \ No newline at end of file