change
This commit is contained in:
parent
c2ace481cb
commit
a47c6280ae
@ -71,7 +71,7 @@ async def play(c: Client, m: Message):
|
||||
a = await c.get_chat_member(chat_id, aing.id)
|
||||
if a.status != "administrator":
|
||||
await m.reply_text(
|
||||
f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Restrict users__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**"
|
||||
f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**"
|
||||
)
|
||||
return
|
||||
if not a.can_manage_voice_chats:
|
||||
@ -87,9 +87,6 @@ async def play(c: Client, m: Message):
|
||||
if not a.can_invite_users:
|
||||
await m.reply_text("missing required permission:" + "\n\n» ❌ __Add users__")
|
||||
return
|
||||
if not a.can_restrict_members:
|
||||
await m.reply_text("missing required permission:" + "\n\n» ❌ __Restrict users__")
|
||||
return
|
||||
try:
|
||||
ubot = await user.get_me()
|
||||
b = await c.get_chat_member(chat_id, ubot.id)
|
||||
@ -142,7 +139,7 @@ async def play(c: Client, m: Message):
|
||||
)
|
||||
else:
|
||||
try:
|
||||
await suhu.edit("🔄 **Joining Vc...**")
|
||||
await suhu.edit("🔄 **Joining vc...**")
|
||||
await call_py.join_group_call(
|
||||
chat_id,
|
||||
AudioPiped(
|
||||
@ -192,7 +189,7 @@ async def play(c: Client, m: Message):
|
||||
)
|
||||
else:
|
||||
try:
|
||||
await suhu.edit("🔄 **Joining Vc...**")
|
||||
await suhu.edit("🔄 **Joining vc...**")
|
||||
await call_py.join_group_call(
|
||||
chat_id,
|
||||
AudioPiped(
|
||||
@ -243,7 +240,7 @@ async def play(c: Client, m: Message):
|
||||
)
|
||||
else:
|
||||
try:
|
||||
await suhu.edit("🔄 **Joining Vc...**")
|
||||
await suhu.edit("🔄 **Joining vc...**")
|
||||
await call_py.join_group_call(
|
||||
chat_id,
|
||||
AudioPiped(
|
||||
@ -287,7 +284,7 @@ async def stream(c: Client, m: Message):
|
||||
a = await c.get_chat_member(chat_id, aing.id)
|
||||
if a.status != "administrator":
|
||||
await m.reply_text(
|
||||
f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Restrict users__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**"
|
||||
f"💡 To use me, I need to be an **Administrator** with the following **permissions**:\n\n» ❌ __Delete messages__\n» ❌ __Add users__\n» ❌ __Manage video chat__\n\nData is **updated** automatically after you **promote me**"
|
||||
)
|
||||
return
|
||||
if not a.can_manage_voice_chats:
|
||||
@ -303,9 +300,6 @@ async def stream(c: Client, m: Message):
|
||||
if not a.can_invite_users:
|
||||
await m.reply_text("missing required permission:" + "\n\n» ❌ __Add users__")
|
||||
return
|
||||
if not a.can_restrict_members:
|
||||
await m.reply_text("missing required permission:" + "\n\n» ❌ __Restrict users__")
|
||||
return
|
||||
try:
|
||||
ubot = await user.get_me()
|
||||
b = await c.get_chat_member(chat_id, ubot.id)
|
||||
@ -361,7 +355,7 @@ async def stream(c: Client, m: Message):
|
||||
)
|
||||
else:
|
||||
try:
|
||||
await suhu.edit("🔄 **Joining Vc...**")
|
||||
await suhu.edit("🔄 **Joining vc...**")
|
||||
await call_py.join_group_call(
|
||||
chat_id,
|
||||
AudioPiped(
|
||||
|
Loading…
Reference in New Issue
Block a user