This commit is contained in:
zxce3 2021-09-14 15:18:45 +07:00
commit afec79f859
10 changed files with 31 additions and 31 deletions

1
.github/CODEOWNERS vendored Normal file
View File

@ -0,0 +1 @@
* @levina-lab

View File

@ -1,4 +1,4 @@
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
@ -672,3 +672,8 @@ may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read Public License instead of this License. But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>. <https://www.gnu.org/licenses/why-not-lgpl.html>.
This repository is developed by Veez Music Team project, changing any code
it's allowed, but removed an important credits named as veez music developer
it's prohibited, our team will report your repository and your account to the
GitHub communities to takedown your repository and banned your account too.

View File

@ -35,7 +35,7 @@ telegram bot project for streaming video on telegram video chat, powered by [py-
📝 Note: From now, /vstream & /vstop command can only be used by group admins. 📝 Note: From now, /vstream & /vstop command can only be used by group admins.
## 🧪 Get STRING_SESSION from below: ## 🧪 Get SESSION_NAME from below:
TAP THIS: [![GenerateString](https://img.shields.io/badge/repl.it-generateString-yellowgreen)](https://replit.com/@levinalab/StringSession#main.py) TAP THIS: [![GenerateString](https://img.shields.io/badge/repl.it-generateString-yellowgreen)](https://replit.com/@levinalab/StringSession#main.py)
@ -149,11 +149,13 @@ jobs:
# Special Credits 💖 # Special Credits 💖
- [Levina](https://github.com/levina-lab) Dev - [Levina](https://github.com/levina-lab) ``Dev``
- [Sammy-XD](https://github.com/Sammy-XD) Dev - [Sammy-XD](https://github.com/Sammy-XD) ``Dev``
- [Zxce3](https://github.com/Zxce3) Dev - [Zxce3](https://github.com/Zxce3) ``Dev``
- [Laky's](https://github.com/Laky-64) for [pytgcalls](https://github.com/MarshalX) - [DoellBarr](https://github.com/DoellBarr) ``Dev``
- [Dan](https://github.com/delivrance) for [Pyrogram](https://github.com/pyrogram) - [tofikdn](https://github.com/tofikdn) ``Dev``
- [Laky's](https://github.com/Laky-64) for [``pytgcalls``](https://github.com/MarshalX)
- [Dan](https://github.com/delivrance) for [``Pyrogram``](https://github.com/pyrogram)
### Support & Updates 🎑 ### Support & Updates 🎑
<a href="https://t.me/VeezSupportGroup"><img src="https://img.shields.io/badge/Join-Group%20Support-blue.svg?style=for-the-badge&logo=Telegram"></a> <a href="https://t.me/levinachannel"><img src="https://img.shields.io/badge/Join-Updates%20Channel-blue.svg?style=for-the-badge&logo=Telegram"></a> <a href="https://t.me/VeezSupportGroup"><img src="https://img.shields.io/badge/Join-Group%20Support-blue.svg?style=for-the-badge&logo=Telegram"></a> <a href="https://t.me/levinachannel"><img src="https://img.shields.io/badge/Join-Updates%20Channel-blue.svg?style=for-the-badge&logo=Telegram"></a>

View File

@ -1,8 +1,6 @@
// Copyright (C) 2021 By VeezMusicProject
{ {
"name": "Veez Video Stream Bot", "name": "Veez Video Stream Bot",
"description": "bot to stream video on telegram video chat, powered by pytgcalls and pyrogram", "description": "telegram bot for streaming video trought the telegram group video chat, powered by pytgcalls and pyrogram",
"logo": "https://telegra.ph/file/103a5208bb1698a8b33de.png", "logo": "https://telegra.ph/file/103a5208bb1698a8b33de.png",
"keywords": [ "keywords": [
"pytgcalls", "pytgcalls",

View File

@ -66,11 +66,11 @@ if __name__ == '__main__':
loop.run_until_complete(start()) loop.run_until_complete(start())
# bot.start() bot.start()
# print("[STATUS]:✅ »» BOT CLIENT STARTED ««") print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
# app.start() app.start()
# print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««") print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
# call_py.start() call_py.start()
# print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««") print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
# idle() idle()
# print("[STATUS]:❌ »» BOT STOPPED ««") print("[STATUS]:❌ »» BOT STOPPED ««")

View File

@ -27,10 +27,7 @@ from helpers.decorators import humanbytes
@Client.on_message(command(["song", f"song@{Veez.BOT_USERNAME}"]) & ~filters.channel) @Client.on_message(command(["song", f"song@{Veez.BOT_USERNAME}"]) & ~filters.channel)
def song(_, message): def song(_, message):
query = "" query = " ".join(message.command[1:])
for i in message.command[1:]:
query += " " + str(i)
print(query)
m = message.reply("🔎 finding song...") m = message.reply("🔎 finding song...")
ydl_ops = {"format": "bestaudio[ext=m4a]"} ydl_ops = {"format": "bestaudio[ext=m4a]"}
try: try:
@ -238,7 +235,7 @@ async def vsong(client, message):
'outtmpl':'%(title)s.%(ext)s', 'outtmpl':'%(title)s.%(ext)s',
'quite':True 'quite':True
} }
query = message.command[1] query = " ".join(message.command[1:])
try: try:
results = YoutubeSearch(query, max_results=1).to_dict() results = YoutubeSearch(query, max_results=1).to_dict()
link = f"https://youtube.com{results[0]['url_suffix']}" link = f"https://youtube.com{results[0]['url_suffix']}"

View File

@ -18,7 +18,7 @@ def raw_converter(dl, song, video):
) )
async def leave_call(chat_id: int): async def leave_call(chat_id: int):
process = FFMPEG_PROCESSES.get(chat_id) process = FFMPEG_PROCESS.get(chat_id)
if process: if process:
try: try:
process.send_signal(SIGINT) process.send_signal(SIGINT)
@ -41,4 +41,3 @@ def youtube(url: str):
return None, None return None, None
except Exception: except Exception:
return None, None return None, None

View File

@ -5,8 +5,6 @@ ffmpeg-python
googletrans==4.0.0rc1 googletrans==4.0.0rc1
py-tgcalls==0.8.0 py-tgcalls==0.8.0
youtube_dl youtube_dl
pafy==0.5.5
pytube==11.0.1
git+https://github.com/pyrogram/pyrogram@master git+https://github.com/pyrogram/pyrogram@master
youtube_search_python==1.4.6 youtube_search_python==1.4.6
youtube_search youtube_search

View File

@ -1,13 +1,13 @@
# Your Session # Your Session
SESSION_NAME= SESSION_NAME=
# Username Bot # Your Bot username without @
BOT_USERNAME= BOT_USERNAME=
# Bot TOKEN from @botfather # Bot TOKEN from @botfather
BOT_TOKEN= BOT_TOKEN=
# Your BOT NAME # Your 2nd account username without @
ASSISTANT_NAME= ASSISTANT_NAME=
# Your API ID from my.telegram.org # Your API ID from my.telegram.org