upload.getFile
Returns content of a whole file or its part.
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
precise | true | لأ | Disable some checks on limit and offset values, useful for example to stream videos by keyframes |
cdn_supported | true | لأ | Whether the current client supports [CDN downloads](https://core.telegram.org/cdn.md) |
location | InputFileLocation | أيوه | File location |
offset | long | أيوه | Number of bytes to be skipped |
limit | int | أيوه | Number of bytes to be returned |
الردود
upload.File
MTProto RPC
- 400 · CDN_METHOD_INVALID — You can't call this method in a CDN DC.
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 406 · FILEREF_UPGRADE_NEEDED — The client has to be updated in order to support [file references](https://core.telegram.org/api/file-references.md).
- 400 · FILE_ID_INVALID — The provided file id is invalid.
- 400 · FILE_REFERENCE_EMPTY — An empty [file reference](https://core.telegram.org/api/file-references.md) was specified.
- 400 · FILE_REFERENCE_EXPIRED — File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file-references.md).
- 400 · FILE_REFERENCE_INVALID — The specified [file reference](https://core.telegram.org/api/file-references.md) is invalid.
- 420 · FLOOD_PREMIUM_WAIT_%d — Please wait %d seconds before repeating the action, or purchase a [Telegram Premium subscription](https://core.telegram.org/api/premium.md) to remove this rate limit.
- 400 · LIMIT_INVALID — The provided limit is invalid.
- 400 · LOCATION_INVALID — The provided location is invalid.
- 400 · MSG_ID_INVALID — Invalid message ID provided.
- 400 · OFFSET_INVALID — The provided offset is invalid.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.