Skip to content

Commit f51fb93

Browse files
authored
Add files via upload
1 parent e602bda commit f51fb93

File tree

6 files changed

+147
-0
lines changed

6 files changed

+147
-0
lines changed

Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM debian:latest
2+
3+
RUN apt update && apt upgrade -y
4+
RUN apt install git curl python3-pip ffmpeg -y
5+
RUN pip3 install -U pip
6+
RUN curl -sL https://deb.nodesource.com/setup_15.x | bash -
7+
RUN apt-get install -y nodejs
8+
RUN npm i -g npm
9+
RUN mkdir /app/
10+
WORKDIR /app/
11+
COPY . /app/
12+
RUN pip3 install -U -r requirements.txt
13+
CMD python3 -m VCPlayBot

app.json

+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"name": "VCPlayBot",
3+
"logo": "https://telegra.ph/file/7ffa8d18b9b7f1b51a81e.jpg",
4+
"description": "Open-Source bot to play songs in your Telegram's Group Voice Chat. Powered by PyTgCalls.",
5+
"keywords": ["music", "voicechat", "telegram"],
6+
"repository": "https://github.com/QueenArzoo/VCPlayBot",
7+
"stack": "container",
8+
"buildpacks": [
9+
{
10+
"url": "https://github.com/jonathanong/heroku-buildpack-ffmpeg-latest"
11+
}
12+
],
13+
"env": {
14+
"SESSION_NAME": {
15+
"description": "Pyrogram session string",
16+
"required": true
17+
},
18+
"BOT_TOKEN": {
19+
"description": "A bot token from @BotFather",
20+
"required": true
21+
},
22+
"BOT_USERNAME": {
23+
"description": "Your bot's username without @",
24+
"required": true
25+
},
26+
"BOT_NAME": {
27+
"description": "Your MusicPlayer Bot Name.",
28+
"required": false,
29+
"value": ""
30+
},
31+
"SUPPORT_GROUP": {
32+
"description": "Your MusicPlayer support group without @ [Leave this if you don't have one]",
33+
"required": false,
34+
"value": "AwesomeSupport"
35+
},
36+
"PROJECT_NAME": {
37+
"description": "Your MusicPlayer project Name.",
38+
"required": false,
39+
"value": "VCPlayBot2.0"
40+
},
41+
"ASSISTANT_NAME": {
42+
"description": "Your MusicPlayer's assistant Username without @.",
43+
"required": true
44+
},
45+
"ARQ_API_KEY": {
46+
"description": "Get from @ARQRobot.",
47+
"required": false,
48+
"value": "VKSSQH-SRNJYZ-MSOJAI-QALESR-ARQ"
49+
},
50+
"BG_IMAGE": {
51+
"description": "BG image of bot (Use transparent one) [IGNORE].",
52+
"required": false,
53+
"value": "https://telegra.ph/file/9b13ea3ce046a1a5c8098.png"
54+
},
55+
"UPDATES_CHANNEL": {
56+
"description": "Updates Channel without @ [Leave this if you don't have one].",
57+
"required": false,
58+
"value": "LaylaList"
59+
},
60+
"API_ID": {
61+
"description": "App ID from my.telegram.org/apps",
62+
"required": true
63+
},
64+
"PMPERMIT": {
65+
"description": "Change to turn off",
66+
"required": false,
67+
"value": "ENABLE"
68+
},
69+
"API_HASH": {
70+
"description": "App hash from my.telegram.org/apps",
71+
"required": true
72+
},
73+
"SUDO_USERS": {
74+
"description": "List of user IDs counted as admin everywhere (separated by space).",
75+
"required": true
76+
},
77+
"DURATION_LIMIT": {
78+
"description": "Max audio duration limit for downloads (minutes).",
79+
"required": true,
80+
"value": "15"
81+
}
82+
}
83+
}

example.env

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
SESSION_NAME=session # If you don't deploy with docker, keep it as is and if you do so it should be a session string generated by "python str.py"
2+
BOT_TOKEN=123456:abcdefghijklmnopqrstuv
3+
BOT_NAME=HELLBOT
4+
API_ID=123456
5+
API_HASH=abcdefghijklmnopqrstuv
6+
SUDO_USERS=1111 2222 # List of user IDs separated by space
7+
DURATION_LIMIT=10 # in minutes (default: 7)
8+
ARQ_API_KEY=
9+
UPDATES_CHANNEL=
10+
BG_IMAGE=
11+

heroku.yml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
build:
2+
docker:
3+
worker: Dockerfile
4+
run:
5+
worker: python3 -m VCPlayBot

requirements.txt

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
pyrogram
2+
TgCrypto
3+
py-tgcalls
4+
python-dotenv
5+
youtube_dl
6+
youtube_search_python
7+
requests
8+
aiohttp
9+
aiofiles
10+
asyncio
11+
youtube_search
12+
search_engine_parser
13+
ffmpeg
14+
Pillow
15+
python-arq
16+
future
17+
psutil
18+
wget

str.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import asyncio
2+
3+
from pyrogram import Client
4+
5+
print("Enter your app information from my.telegram.org/apps below.")
6+
7+
8+
async def main():
9+
async with Client(
10+
":memory:", api_id=int(input("API ID:")), api_hash=input("API HASH:")
11+
) as app:
12+
print(await app.export_session_string())
13+
14+
15+
if __name__ == "__main__":
16+
loop = asyncio.get_event_loop()
17+
loop.run_until_complete(main())

0 commit comments

Comments
 (0)