tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Error 504 when call getFile method #2262

Closed ysset closed 1 year ago

ysset commented 1 year ago

I am trying to call getFile method with my test bot but it always return 504 error

https://api.telegram.org/bot<botToken>/test/getFile?file_id=<big file id from 'photo' bot event>

The method works fine, if i try to call it with wrong id i get an error

{
    "ok": false,
    "error_code": 400,
    "description": "Bad Request: invalid file_id"
}

But if photo id is valid i get timeout error(504)

{
    "ok": false,
    "error_code": 504,
    "description": "Gateway Timeout"
}
levlam commented 1 year ago

Test DC isn't expected to be reliable. It seems to have issues with file downloading now.

ysset commented 1 year ago

Is there another way to get a link to a file by another method?

levlam commented 1 year ago

No. The file can't be downloaded in Test DC now.