Skip to content

upload.getFile

No description provided by the pinned schema.

upload.getFile#be5335be flags:# precise:flags.0?true cdn_supported:flags.1?true location:InputFileLocation offset:long limit:int = upload.File;

upload.File

NameTypeFlagDefaultDescription
flags#flag wordNo description provided by the pinned schema.
preciseflags.0?trueflags.0No description provided by the pinned schema.
cdn_supportedflags.1?trueflags.1No description provided by the pinned schema.
locationInputFileLocationNo description provided by the pinned schema.
offsetlongNo description provided by the pinned schema.
limitintNo description provided by the pinned schema.
ParameterBitMeaning
precise0Controlled by flags; present when this bit is set.
cdn_supported1Controlled by flags; present when this bit is set.
from miniproto.raw.functions import UploadGetFile

Public access: miniproto.raw.functions.UploadGetFile.

from miniproto.raw.functions import UploadGetFile
# Naming the raw request class is local only; it performs no I/O or network request.
request_type = UploadGetFile

upload.File

CodeErrorDescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we’re a user, and users cannot invoke methods over a business connection; (2) we’re a bot, but business mode was disabled in @botfather or (3); we’re a bot, but this method cannot be invoked over a business connection.
400CDN_METHOD_INVALIDYou can’t call this method in a CDN DC.
400CHANNEL_INVALIDThe provided channel is invalid.
400CHANNEL_PRIVATEYou haven’t joined this channel/supergroup.
400FILE_ID_INVALIDThe provided file id is invalid.
400FILE_REFERENCE_EMPTYAn empty file reference was specified.
400FILE_REFERENCE_EXPIREDFile reference expired, it must be refetched as described in the documentation.
400FILE_REFERENCE_INVALIDThe specified file reference is invalid.
400LIMIT_INVALIDThe provided limit is invalid.
400LOCATION_INVALIDThe provided location is invalid.
400MSG_ID_INVALIDInvalid message ID provided.
400OFFSET_INVALIDThe provided offset is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
406FILEREF_UPGRADE_NEEDEDThe client has to be updated in order to support file references.
420FLOOD_PREMIUM_WAIT_%dPlease wait %d seconds before repeating the action, or purchase a Telegram Premium subscription to remove this rate limit.

InputFileLocation Known selected constructors: inputDocumentFileLocation, inputEncryptedFileLocation, inputFileLocation, inputGroupCallStream, inputPeerPhotoFileLocation, inputPeerPhotoFileLocationLegacy, inputPhotoFileLocation, inputPhotoLegacyFileLocation, inputSecureFileLocation, inputStickerSetThumb, inputStickerSetThumbLegacy, inputTakeoutFileLocation

upload.File Known selected constructors: upload.file, upload.fileCdnRedirect

upload.getFileHashes

  • tdlib_vs_core: changed_count=68; core_only_count=1; overlap_count=2302; tdlib_only_count=158
  • tdlib_vs_tdesktop: changed_count=0; overlap_count=2448; tdesktop_only=null; tdlib_only=accessPointRule, ephemeral.editMessage, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret, updateEphemeralBotCallbackQuery