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

Workaround Telegram upload by URL failed #21

Open
mo-rijndael opened this issue Nov 5, 2022 · 2 comments
Open

Workaround Telegram upload by URL failed #21

mo-rijndael opened this issue Nov 5, 2022 · 2 comments
Assignees
Labels
bug Something isn't working destination help wanted Extra attention is needed TG

Comments

@mo-rijndael
Copy link

Sometimes uploading by URL fails with no reason. Would be nice to implement downloading& uploading pictures in that case (it's not optimal to do it by default), so post would be still crossposted

@hatkidchan
Copy link
Owner

Yeah, I was having same issue quite often. No clue why that's happening, but for some URLs Telegram just refuses to even show a preview in app itself. I'm not sure how to make that efficiently though, because I don't want to download every image and then re-upload them. But at the same time I'm not sure how to do all of that asynchronously. I'll try to figure that out later this day

@hatkidchan hatkidchan added bug Something isn't working help wanted Extra attention is needed TG destination labels Nov 5, 2022
@hatkidchan hatkidchan self-assigned this Nov 5, 2022
@mo-rijndael
Copy link
Author

I don't want to download every image and then re-upload them.

But there is no more efficient way. Trying to determine which image triggers this bug would consume even more requests

But at the same time I'm not sure how to do all of that asynchronously.

asyncio.gather

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working destination help wanted Extra attention is needed TG
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants