Bot is now aggressive to voice messages
This commit is contained in:
8
modules/handlers/voice.py
Normal file
8
modules/handlers/voice.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from random import choice
|
||||
from app import app
|
||||
from pyrogram import filters
|
||||
from modules.utils import configGet, locale
|
||||
|
||||
@app.on_message(~ filters.scheduled & filters.voice & filters.chat(configGet("destination_group")))
|
||||
async def voice_message(app, msg):
|
||||
await msg.reply_text(choice(locale("voice_message", "message")))
|
Reference in New Issue
Block a user