Skip to content
Open

T #2

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: sudo apt update && sudo apt install git curl python3-pip ffmpeg -y && pip3 install -U pip && npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH && pip3 install -U -r requirements.txt && python3 main.py

12 changes: 6 additions & 6 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

# FILES BELONGS TO @TEAMOCTAVE
# FILES BELONGS TO @sufiansrk10

import os

from dotenv import load_dotenv
from pyrogram import Client, filters
from pytgcalls import PyTgCalls

# For Local Deploy
# For Local Deploys
if os.path.exists(".env"):
load_dotenv(".env")

# Necessary Vars
API_ID = int(os.getenv("API_ID"))
API_HASH = os.getenv("API_HASH")
SESSION = os.getenv("SESSION")
API_ID = int(os.getenv("API_ID","12233538"))
API_HASH = os.getenv("API_HASH","1140f52873a95287478ab500019370c0")
SESSION = os.getenv("SESSION","BABdzmj3Yp6tapTeNpvF8vUnC5eeR8E5_tlmLo7wqdMpMjTM98l7mpH4baijSBYm1hnswV4aXCOXW6qvu9C657XvfdBg_-7kWM4ZQpaj52ViICS0hnaDosvI9IO0hie8lvNVcaJSkecvkGbxtLuYPU8ab1xpCSHmACgzVTHgR8FvVXGIey2rImpXn7wmqp9AMwa_ZJl0MDGD9AzzcJj9pk43kfQVZbnuyyL75ApGjl17jdxMiQumYb495da_i9MmmzWf2P-UgBvXZFoX8b0_PIIKwSMX56aupi5BePY924ELa2EAXDxyN5T_8x-vqYHj-TL3LgxlXMCF5D8svU4CKVHLf52_-gA")
HNDLR = os.getenv("HNDLR", "/")
SUDO_USERS = list(map(int, os.getenv("SUDO_USERS").split()))
SUDO_USERS = list(map(int, os.getenv("SUDO_USERS","1158888206").split()))


contact_filter = filters.create(
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ async def main():
------------------
"""
)
await call_py.join_chat(GROUP_ID)
await call_py.join_chat(GROUP_ID, "1001654093157")
await call_py.send_message(GROUP_ID, "I Used Your Code For Music")
await idle()
await arq.close()
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
TgCrypto
pyrogram
py-tgcalls==0.8.2
pyrogram==1.4.16
py-tgcalls==0.9.7
requests
aiohttp
aiofiles
Expand Down