merge pull request #27 from levina-lab/main

push commit from base
This commit is contained in:
levina 2021-11-02 04:10:23 +07:00 committed by GitHub
commit 8a3dfd70f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 24 additions and 6 deletions

View File

@ -28,8 +28,9 @@
- Music & Video downloader feature
- Inline Search support
- YouTube direct search support
- YouTube/Local/Radio/Live stream support
- YouTube/Local/Live/m3u8 stream support
- Inline Search support
- Control With Button support
## 🛠 Commands:
- `/play (query)` - play music from youtube
@ -77,6 +78,7 @@ python3 main.py # run the bot.
- [Zxce3](https://github.com/Zxce3) ``Dev``
- [DoellBarr](https://github.com/DoellBarr) ``Dev``
- [tofikdn](https://github.com/tofikdn) ``Dev``
- [Hunter-XDD](https://github.com/Hunter-XDD) ``Dev``
- [Laky's](https://github.com/Laky-64) for [``py-tgcalls``](https://github.com/pytgcalls/pytgcalls)
- [Dan](https://github.com/delivrance) for [``Pyrogram``](https://github.com/pyrogram)

View File

@ -107,7 +107,7 @@ async def cbbasic(_, query: CallbackQuery):
» /play (song name/link) - play music on video chat
» /stream (query/link) - stream the yt live/radio live music
» /vplay (video name/link) - play video on video chat
» /vstream - play live video from yt live
» /vstream - play live video from yt live/m3u8
» /playlist - show you the playlist
» /video (query) - download video from youtube
» /song (query) - download song from youtube

View File

@ -114,7 +114,11 @@ async def vplay(client, m: Message):
amaze = LowQualityVideo()
await call_py.join_group_call(
chat_id,
AudioVideoPiped(dl, HighQualityAudio(), amaze),
AudioVideoPiped(
dl,
HighQualityAudio(),
amaze,
),
stream_type=StreamType().pulse_stream,
)
add_to_queue(chat_id, songname, dl, link, "Video", Q)
@ -158,7 +162,11 @@ async def vplay(client, m: Message):
try:
await call_py.join_group_call(
chat_id,
AudioVideoPiped(ytlink, HighQualityAudio(), amaze),
AudioVideoPiped(
ytlink,
HighQualityAudio(),
amaze,
),
stream_type=StreamType().pulse_stream,
)
add_to_queue(chat_id, songname, ytlink, url, "Video", Q)
@ -203,7 +211,11 @@ async def vplay(client, m: Message):
try:
await call_py.join_group_call(
chat_id,
AudioVideoPiped(ytlink, HighQualityAudio(), amaze),
AudioVideoPiped(
ytlink,
HighQualityAudio(),
amaze,
),
stream_type=StreamType().pulse_stream,
)
add_to_queue(chat_id, songname, ytlink, url, "Video", Q)
@ -285,7 +297,11 @@ async def vstream(client, m: Message):
try:
await call_py.join_group_call(
chat_id,
AudioVideoPiped(livelink, HighQualityAudio(), amaze),
AudioVideoPiped(
livelink,
HighQualityAudio(),
amaze,
),
stream_type=StreamType().pulse_stream,
)
add_to_queue(chat_id, "Live Stream", livelink, link, "Video", Q)