This repository has been archived on 2024-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Telegram/modules/handlers/voice.py
2022-12-18 17:51:21 +01:00

8 lines
323 B
Python

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")))