Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Exception during Telegraph::store for large videos #607

Answered by fabio-ivona
YAlex84 asked this question in Q&A
Discussion options

I'm trying to save a video while a webhook is triggered. Small files, up to about 10MB, are saved without problems. Larger files are not saved and the exception "Failed to retreive info for file" is thrown during Telegraph::store. What could be the problem?

Telegraph::store($this->message->video(), storage_path() . '/temp');

$this->message->video() dumps for small and large videos look the same good.

You must be logged in to vote

What is the size of your file? Telegram has a 2gb max size for non-premium users

Edit: it seems that Bots have a lower file size limit for downloads: 20MB:

https://core.telegram.org/bots/api#getfile

I can't see a workaround for this, sorry

Replies: 1 comment 4 replies

Comment options

Hi @YAlex84 it seems that the issue comes from telegram's side

could you please dump $response->dump() in vendor/defstudio/telegraph/Concerns/StoresFiles.php::32 ?

You must be logged in to vote
4 replies
Comment options

Hi @fabio-ivona thanks for the answer. The dump is as follows:

{"ok":false,"error_code":400,"description":"Bad Request: file is too big"}

Actually, the problem is indicated in the description) Another question is, what to do about it?

Comment options

What is the size of your file? Telegram has a 2gb max size for non-premium users

Edit: it seems that Bots have a lower file size limit for downloads: 20MB:

https://core.telegram.org/bots/api#getfile

I can't see a workaround for this, sorry

Answer selected by fabio-ivona
Comment options

It looks like there really is no solution... But it’s good that the reason and the download limit are now known. Thank you for participating!

Comment options

We have updated our docs to include this limitation, thanks for pointing this out!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
Converted from issue

This discussion was converted from issue #606 on July 15, 2024 09:15.

AltStyle によって変換されたページ (->オリジナル) /