Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

about sent to tg #40

Closed
lancer-wang opened this issue May 6, 2023 · 1 comment
Closed

about sent to tg #40

lancer-wang opened this issue May 6, 2023 · 1 comment

Comments

@lancer-wang
Copy link

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant