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
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
Public License instead of this License. But first, please read
<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.
## 🧪 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)
@ -149,11 +149,13 @@ jobs:
# Special Credits 💖
- [Levina](https://github.com/levina-lab) Dev
- [Sammy-XD](https://github.com/Sammy-XD) Dev
- [Zxce3](https://github.com/Zxce3) 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)
- [Levina](https://github.com/levina-lab) ``Dev``
- [Sammy-XD](https://github.com/Sammy-XD) ``Dev``
- [Zxce3](https://github.com/Zxce3) ``Dev``
- [DoellBarr](https://github.com/DoellBarr) ``Dev``
- [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 🎑
<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",
"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",
"keywords": [
"pytgcalls",

View File

@ -66,11 +66,11 @@ if __name__ == '__main__':
loop.run_until_complete(start())
# bot.start()
# print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
# app.start()
# print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
# call_py.start()
# print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
# idle()
# print("[STATUS]:❌ »» BOT STOPPED ««")
bot.start()
print("[STATUS]:✅ »» BOT CLIENT STARTED ««")
app.start()
print("[STATUS]:✅ »» USERBOT CLIENT STARTED ««")
call_py.start()
print("[STATUS]:✅ »» PYTGCALLS CLIENT STARTED ««")
idle()
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)
def song(_, message):
query = ""
for i in message.command[1:]:
query += " " + str(i)
print(query)
query = " ".join(message.command[1:])
m = message.reply("🔎 finding song...")
ydl_ops = {"format": "bestaudio[ext=m4a]"}
try:
@ -238,7 +235,7 @@ async def vsong(client, message):
'outtmpl':'%(title)s.%(ext)s',
'quite':True
}
query = message.command[1]
query = " ".join(message.command[1:])
try:
results = YoutubeSearch(query, max_results=1).to_dict()
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):
process = FFMPEG_PROCESSES.get(chat_id)
process = FFMPEG_PROCESS.get(chat_id)
if process:
try:
process.send_signal(SIGINT)
@ -41,4 +41,3 @@ def youtube(url: str):
return None, None
except Exception:
return None, None

View File

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

View File

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