forked from sultansq/kiu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
call.py
33 lines (30 loc) · 1.23 KB
/
call.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import asyncio
from pyrogram import Client, filters
from strings import get_command
from strings.filters import command
from pyrogram.types import Message, VoiceChatStarted, VoiceChatEnded
from AnonX import (Apple, Resso, SoundCloud, Spotify, Telegram, YouTube, app)
from AnonX.core.call import Anon
from AnonX.utils.database import get_assistant
@app.on_message(filters.voice_chat_started)
async def stcall(client: Client, message: Message):
Startt = "تم بدأ محادثه صوتيه"
await message.reply_text(Startt)
@app.on_message(filters.voice_chat_ended)
async def encall(client: Client, message: Message):
Enddd = "تم إغلاق المحادثه الصوتيه"
await message.reply_text(Enddd)
@app.on_message(filters.voice_chat_members_invited)
async def zoharyy(client: Client, message: Message):
text = f"- قام {message.from_user.mention}\n - بدعوة : "
x = 0
for user in message.voice_chat_members_invited.users:
try:
text += f"[{user.first_name}](tg://user?id={user.id}) "
x += 1
except Exception:
pass
try:
await message.reply(f"{text} ")
except:
pass