This repository was archived by the owner on Sep 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Expand file tree Collapse file tree 3 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Command | Description
48
48
/telegram | Play A Song Directly From Telegram File.
49
49
/queue | Check Queue Status.
50
50
/joinvc | Join Voice Chat.
51
+ /rejoinvc | Rejoin Voice Chat.
51
52
/leavevc | Leave Voice Chat.
52
53
/volume [ 1-200] | Adjust Volume.
53
54
/pause | Pause Music.
Original file line number Diff line number Diff line change @@ -72,6 +72,20 @@ async def joinvc(_, message):
72
72
await send (str (e ))
73
73
74
74
75
+ @app .on_message (filters .command ("rejoinvc" ) & filters .user (SUDOERS ))
76
+ async def joinvc (_ , message ):
77
+ try :
78
+ if vc .is_connected :
79
+ await send ("__**Bot Is Already In Voice Chat.**__" )
80
+ return
81
+ chat_id = message .chat .id
82
+ await vc .reconnect ()
83
+ await send ("__**Joined The Voice Chat.**__" )
84
+ except Exception as e :
85
+ print (str (e ))
86
+ await send (str (e ))
87
+
88
+
75
89
@app .on_message (filters .command ("leavevc" ) & filters .user (SUDOERS ))
76
90
async def leavevc (_ , message ):
77
91
if not vc .is_connected :
Original file line number Diff line number Diff line change 5
5
**/play** __youtube/saavn/deezer Song_Name__
6
6
**/telegram** __Play From Telegram Audio.__
7
7
**/joinvc** __Join Voice Chat.__
8
+ **/rejoinvc** __Rejoin Voice Chat.__
8
9
**/leavevc** __Leave Voice Chat.__
9
10
**/volume [1-200]** __Adjust Volume.__
10
11
**/pause** __Pause Music.__
You can’t perform that action at this time.
0 commit comments