fixes
This commit is contained in:
parent
7a0976dcd0
commit
c8c316d2a5
@ -110,12 +110,14 @@ async def vplay(c: Client, m: Message):
|
|||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
try:
|
try:
|
||||||
user_id = (await user.get_me()).id
|
invitelink = await c.export_chat_invite_link(
|
||||||
link = await c.export_chat_invite_link(chat_id)
|
m.chat.id
|
||||||
if "+" in link:
|
)
|
||||||
link_hash = (link.replace("+", "")).split("t.me/")[1]
|
if invitelink.startswith("https://t.me/+"):
|
||||||
await ubot.join_chat(link_hash)
|
invitelink = invitelink.replace(
|
||||||
await c.promote_member(chat_id, user_id)
|
"https://t.me/+", "https://t.me/joinchat/"
|
||||||
|
)
|
||||||
|
await user.join_chat(invitelink)
|
||||||
except UserAlreadyParticipant:
|
except UserAlreadyParticipant:
|
||||||
pass
|
pass
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
|
Loading…
Reference in New Issue
Block a user