brandonmoss-99/Telegram-Tweet-Media-Downloader-Bot

about sent to tg

Closed this issue · 1 comments

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)
`

I don't know how to send pictures or videos using tgbot