about sent to tg
lancer-wang opened this issue · 1 comments
lancer-wang commented
I found a library called subprocess that can get the output of gallery-dl.
Can you add the function of automatically sending to Telegram after downloading?
`
import subprocess
command = "gallery-dl https://telegraph-image-at3.pages.dev/file/9e17e8bb0e9a883087fc8.png"
output = subprocess.run(command,shell=True, capture_output=True,text=True)
outs = output.stdout.replace("# ","").split("\n")
print(outs)
for line in outs:
if line !="":
print(line)
`
lancer-wang commented
I don't know how to send pictures or videos using tgbot