Remove TG_CID as it is not nessesary.

This commit is contained in:
rozari0 2023-01-25 01:11:43 +06:00
parent 2fcf9c078c
commit 4ff7e793a1
2 changed files with 4 additions and 7 deletions

View File

@ -5,14 +5,12 @@ from pyrogram.types import (
InputMediaDocument,
)
from requests import get
from tgconfig import TG_API_HASH, TG_API_ID, TG_CID, TG_TOKEN
from tgconfig import TG_API_HASH, TG_API_ID, TG_TOKEN
url = "https://api.github.com/repos/Libre-Tube/LibreTube/releases/latest"
req = get(url).json()
if TG_CID.isdecimal():
TG_CID = int(TG_CID)
TG_CHANNEL = "LibreTube"
def get_changelog():
@ -56,9 +54,9 @@ for file in _files:
caption = f"**LibreTube {tag} // Privacy Simplified**\n\n<u>What's Changed?</u>\n```{get_changelog()}```"
with Client("bot", TG_API_ID, TG_API_HASH, bot_token=TG_TOKEN) as app:
app.send_photo(
TG_CID,
TG_CHANNEL,
"https://i.ibb.co/LJ9r4hP/LT.jpg",
caption,
reply_markup=buttons,
)
app.send_media_group(TG_CID, files)
app.send_media_group(TG_CHANNEL, files)

View File

@ -18,7 +18,6 @@ jobs:
git clone https://github.com/${{ github.repository }} && cd LibreTube
echo "TG_API_ID = '${{ secrets.TG_API_ID }}'" >> tgconfig.py
echo "TG_API_HASH = '${{ secrets.TG_API_HASH }}'" >> tgconfig.py
echo "TG_CID = '${{ secrets.TG_CID }}'" >> tgconfig.py
echo "TG_TOKEN = '${{ secrets.TG_TOKEN }}'" >> tgconfig.py
pip install pyrogram TgCrypto requests
mv .github/runOnRelease.py .