Telegram bot - need URL of highest quality photo for buffer post

Hi all,

This is my first question here so I hope I’m explaining it correctly and searched for the right answer. But I couldn’t find it unfortunately.

I have a flow where I’m uploading a photo with text to telegram, to analyse and create a better text format with hashtags to openai. As far as I can see it’s going good until here.

the download file is easy to select the right photo with high quality:

but then I need this to be uploaded to buffer, to schedule the post.

I can only find 1 external accessible URL to send to Buffer:

https://api.telegram.org/file/botxxxxxxxxx/photos/file_6.jpg

but this one has VERY low quality. So I need the highest, but I can’t find a way to get the URL. And it’s not possible to send the file as data to buffer.

So I need something like this, because Buffer only seems to support a link


https://api.telegram.org/file/botxxxxxxxxx/photos/HIGHQUALITY_file_6.jpg"

Thanks in advance!

Okay, I have no clue WHY this works, but it does. I found a post (can’t find the link back) where someone added a 4 in the download file action. I get the point that it downloads the 4th item in the array. But the Buffer action is using a completely different URL. BUT I end up with having a higher quality photo in the instagram post. Maybe this action triggers something on the bot side. Not sure, but it works now :slight_smile:

1 Like

Welcome to the Make community!

For more information, also see these similar questions by other community members, which may answer your question in further detail:

Do try to search this forum for existing answers, and also use the documentation in the Help Centre. You are likely to get to a solution faster this way and also help keep the forum organised. Thanks for your cooperation!

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

Thanks Sam! Yeah I searched but it all looks a bit different since I needed an external URL. Still not sure how, but it’s fixed now. Kind regards, Bart

2 Likes