You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This can be worked around by artificially adding a fake param x=.jpg making it $img_url = 'https://www.instagram.com/p/-kfo63BQes/media/?size=l&x=.jpg';
In my opinion, there shouldn't be file extension checks for remote files because an image/video url can be in any format.
The text was updated successfully, but these errors were encountered:
That check is from Telegram Bot API servers and has got nothing to do with this SDK. That's something we can't really control. If they say it's not supported, then its not and you need to provide the one which is supported.
Besides that, The SDK won't do auto redirect. So instead of providing that link, you could rather provide a direct link to the image like this (Same URL which you provided above):
However, the redirect works fine in my testing with https://www.instagram.com/p/-kfo63BQes/media/?size=l&x=.jpg. There was no need to provide the direct image link.
Was testing the support for remote files added in 67e17a5 and got an error
[Error]: Photo has unsupported extension.
This can be worked around by artificially adding a fake param
x=.jpg
making it$img_url = 'https://www.instagram.com/p/-kfo63BQes/media/?size=l&x=.jpg';
In my opinion, there shouldn't be file extension checks for remote files because an image/video url can be in any format.
The text was updated successfully, but these errors were encountered: