Skip to content

Commit

Permalink
TG File Support
Browse files Browse the repository at this point in the history
  • Loading branch information
AnshumanPM committed Nov 28, 2023
1 parent d61751d commit 979ac17
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,18 @@ def tg_stream():
f_size = data[1]
f_owner = data[2]
f_time = data[3]
try:
tg_file_url = data[4]
except:
tg_file_url = "https://telegram.me/AnshumanFileBot"
return render_template(
"tg-stream.html",
video_url=video_url,
f_name=f_name,
f_size=f_size,
f_owner=f_owner,
f_time=f_time,
tg_file_url=tg_file_url,
)
except BaseException:
return "Invalid Input!"
Expand Down

0 comments on commit 979ac17

Please sign in to comment.