mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Remove TG_CID as it is not nessesary.
This commit is contained in:
parent
2fcf9c078c
commit
4ff7e793a1
10
.github/runOnRelease.py
vendored
10
.github/runOnRelease.py
vendored
@ -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)
|
||||
|
1
.github/workflows/run-on-release.yml
vendored
1
.github/workflows/run-on-release.yml
vendored
@ -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 .
|
||||
|
Loading…
Reference in New Issue
Block a user