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

Is there any function or class that returns "media" downloadable link? #651

Closed
morekaccino opened this issue Feb 28, 2018 · 3 comments
Closed
Labels
question Question about strange Telegram's API

Comments

@morekaccino
Copy link

As I understand, Telegram's server create a temporary link and we can download the medias through the link, how can I know what is the link? I tried FileLocation, and InputFileLocation but they wouldn't help.

@Lonami
Copy link
Member

Lonami commented Feb 28, 2018

No, there's no such thing. However, if you have a FileLocation or its Input version you can download the files with those (method client.download_file).

@Lonami Lonami closed this as completed Feb 28, 2018
@Lonami Lonami added the question Question about strange Telegram's API label Feb 28, 2018
@jimist
Copy link

jimist commented Apr 26, 2018

I need this method too.

I've traced the download until InputDocumentFileLocation but can't get how it is getting the file from CDN!

Is it not possible to get the link from telegram at all? @Lonami

@Lonami
Copy link
Member

Lonami commented Apr 26, 2018

I need this method too.

No, there's no such thing.

but can't get how it is getting the file from CDN!

Should be handled by the library. If it's, you know the file is in a CDN (hint: enable logging), you can help out over #598.

Is it not possible to get the link from telegram at all?

There's no such thing as a link if you sign in as an user.

@LonamiWebs LonamiWebs locked as resolved and limited conversation to collaborators Apr 26, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Question about strange Telegram's API
Projects
None yet
Development

No branches or pull requests

3 participants