Источники ссылок на файлы #

Извлекатель источника содержит инструкцию, по которой клиент может извлечь источник файла »; ниже приведён полный список извлекателей источников файлов, содержащихся в текущем файле карты ссылок на файлы » (file_reference — ссылка на файл, короткая метка, которая подтверждает право клиента скачать конкретный файл и которую нужно предъявлять при скачивании).

Подробнее об извлекателях источников файлов см. здесь ».

  • (1) document —

    fileSourceStickerSet{stickerset: extractInputStickerSetFromDocumentAttributesAndStore(document.attributes)}
    
  • (2) document —

    (needs users.getSavedMusic) fileSourceSavedMusic{user_id: extractUserIdFromInputUserAndStore(users.getSavedMusic.id), id: document.id, access_hash: document.access_hash}
    
  • (3) document —

    (needs users.getSavedMusicByID) fileSourceSavedMusic{user_id: extractUserIdFromInputUserAndStore(users.getSavedMusicByID.id), id: document.id, access_hash: document.access_hash}
    
  • photo —

    (needs photos.getUserPhotos) fileSourceUserProfilePhoto{user_id: extractUserIdFromInputUserAndStore(photos.getUserPhotos.user_id), max_id: photo.id}
    
  • account.savedRingtoneConverted —

    fileSourceSavedRingtones{}
    
  • account.savedRingtones —

    fileSourceSavedRingtones{}
    
  • attachMenuBot —

    fileSourceAttachMenuBot{bot: attachMenuBot.bot_id}
    
  • botApp —

    fileSourceBotApp{id: botApp.id, access_hash: botApp.access_hash}
    
  • botInfo —

    fileSourceUserFull{id: botInfo.user_id?abort_if_empty}
    
  • channelAdminLogEvent —

    (needs channels.getAdminLog) fileSourceAdminLog{channel: extractChannelIdFromInputChannelAndStore(channels.getAdminLog.channel), max_id: channelAdminLogEvent.id}
    
  • channelFull —

    fileSourceChannelFull{channel: channelFull.id}
    
  • chatFull —

    fileSourceChatFull{chat_id: chatFull.id}
    
  • foundStory —

    fileSourceStory{id: foundStory.story.storyItem.id, peer: extractPeerIdFromPeerAndStore(foundStory.peer)}
    
  • (1) message —

    (unless messages.getScheduledMessages, updateNewScheduledMessage) fileSourceMessage{quick_reply_shortcut_id: message.quick_reply_shortcut_id?passthrough, peer: extractPeerIdFromPeerAndStore(message.peer_id), id: message.id}
    
  • (2) message —

    (needs messages.getScheduledMessages) fileSourceScheduledMessage{peer: extractPeerIdFromInputPeerAndStore(messages.getScheduledMessages.peer), id: message.id}
    
  • (3) message —

    (needs updateNewScheduledMessage) fileSourceScheduledMessage{peer: extractPeerIdFromPeerAndStore(updateNewScheduledMessage.message.message.peer_id), id: message.id}
    
  • messageMediaStory —

    fileSourceStory{id: messageMediaStory.story?abort_if_empty.storyItem.id, peer: extractPeerIdFromPeerAndStore(messageMediaStory.peer)}
    
  • messageService —

    (unless messages.getScheduledMessages, updateNewScheduledMessage) fileSourceMessage{peer: extractPeerIdFromPeerAndStore(messageService.peer_id), id: messageService.id, quick_reply_shortcut_id: false}
    
  • messages.availableEffects —

    fileSourceAvailableEffects{}
    
  • messages.availableReactions —

    fileSourceAvailableReactions{}
    
  • messages.savedGifs —

    fileSourceSavedGifs{}
    
  • messages.stickerSet —

    fileSourceStickerSet{stickerset: extractInputStickerSetFromStickerSetAndStore(messages.stickerSet.set)}
    
  • publicForwardStory —

    fileSourceStory{id: publicForwardStory.story.storyItem.id, peer: extractPeerIdFromPeerAndStore(publicForwardStory.peer)}
    
  • (1) starsTransaction —

    (needs payments.getStarsStatus) fileSourceStarsTransaction{peer: extractPeerIdFromInputPeerAndStore(payments.getStarsStatus.peer), ton: payments.getStarsStatus.ton?passthrough, id: starsTransaction.id, refund: starsTransaction.refund?passthrough}
    
  • (2) starsTransaction —

    (needs payments.getStarsTransactions) fileSourceStarsTransaction{peer: extractPeerIdFromInputPeerAndStore(payments.getStarsTransactions.peer), ton: payments.getStarsTransactions.ton?passthrough, id: starsTransaction.id, refund: starsTransaction.refund?passthrough}
    
  • (3) starsTransaction —

    (needs payments.getStarsTransactionsByID) fileSourceStarsTransaction{peer: extractPeerIdFromInputPeerAndStore(payments.getStarsTransactionsByID.peer), ton: payments.getStarsTransactionsByID.ton?passthrough, id: starsTransaction.id, refund: starsTransaction.refund?passthrough}
    
  • (4) starsTransaction —

    (needs payments.getStarsSubscriptions) fileSourceStarsTransaction{peer: extractPeerIdFromInputPeerAndStore(payments.getStarsSubscriptions.peer), id: starsTransaction.id, refund: starsTransaction.refund?passthrough, ton: false}
    
  • stickerSetFullCovered —

    fileSourceStickerSet{stickerset: extractInputStickerSetFromStickerSetAndStore(stickerSetFullCovered.set)}
    
  • stickerSetMultiCovered —

    fileSourceStickerSet{stickerset: extractInputStickerSetFromStickerSetAndStore(stickerSetMultiCovered.set)}
    
  • (1) storyItem —

    (needs stories.getPinnedStories) fileSourceStory{id: storyItem.id, peer: extractPeerIdFromInputPeerAndStore(stories.getPinnedStories.peer)}
    
  • (2) storyItem —

    (needs stories.getStoriesArchive) fileSourceStory{id: storyItem.id, peer: extractPeerIdFromInputPeerAndStore(stories.getStoriesArchive.peer)}
    
  • (3) storyItem —

    (needs stories.getStoriesByID) fileSourceStory{id: storyItem.id, peer: extractPeerIdFromInputPeerAndStore(stories.getStoriesByID.peer)}
    
  • (4) storyItem —

    (needs stories.getAlbumStories) fileSourceStory{id: storyItem.id, peer: extractPeerIdFromInputPeerAndStore(stories.getAlbumStories.peer)}
    
  • (5) storyItem —

    (needs peerStories) fileSourceStory{id: storyItem.id, peer: extractPeerIdFromPeerAndStore(peerStories.peer)}
    
  • (6) storyItem —

    fileSourceStory{id: storyItem.id, peer: extractPeerIdFromPeerAndStore(storyItem.from_id?abort_if_empty)}
    
  • storyReactionPublicRepost —

    fileSourceStory{id: storyReactionPublicRepost.story.storyItem.id, peer: extractPeerIdFromPeerAndStore(storyReactionPublicRepost.peer_id)}
    
  • storyViewPublicRepost —

    fileSourceStory{id: storyViewPublicRepost.story.storyItem.id, peer: extractPeerIdFromPeerAndStore(storyViewPublicRepost.peer_id)}
    
  • theme —

    fileSourceTheme{id: theme.id, access_hash: theme.access_hash}
    
  • updateMessageExtendedMedia —

    fileSourcePaidMedia{id: updateMessageExtendedMedia.msg_id, peer: extractPeerIdFromPeerAndStore(updateMessageExtendedMedia.peer)}
    
  • updateMessagePoll —

    (unless messages.getScheduledMessages, updateNewScheduledMessage) fileSourceMessage{peer: extractPeerIdFromPeerAndStore(updateMessagePoll.peer?abort_if_empty), id: updateMessagePoll.msg_id?abort_if_empty, quick_reply_shortcut_id: false}
    
  • (1) userFull —

    fileSourceUserFull{id: userFull.id}
    
  • (2) userFull —

    fileSourceSavedMusic{user_id: userFull.id, id: userFull.saved_music?abort_if_empty.document.id, access_hash: userFull.saved_music?abort_if_empty.document.access_hash}
    
  • wallPaper —

    fileSourceWallPaper{id: wallPaper.id, access_hash: wallPaper.access_hash}
    
  • webPage —

    fileSourceWebPage{url: webPage.url}
    
  • webPageAttributeStory —

    fileSourceStory{id: webPageAttributeStory.story?abort_if_empty.storyItem.id, peer: extractPeerIdFromPeerAndStore(webPageAttributeStory.peer)}
    
  • account.uploadRingtone —

    fileSourceSavedRingtones{}
    
  • bots.addPreviewMedia —

    fileSourceBotPreviewInfo{bot: extractUserIdFromInputUserAndStore(bots.addPreviewMedia.bot), lang_code: bots.addPreviewMedia.lang_code}
    
  • bots.editPreviewMedia —

    fileSourceBotPreviewInfo{bot: extractUserIdFromInputUserAndStore(bots.editPreviewMedia.bot), lang_code: bots.editPreviewMedia.lang_code}
    
  • bots.getPreviewInfo —

    fileSourceBotPreviewInfo{bot: extractUserIdFromInputUserAndStore(bots.getPreviewInfo.bot), lang_code: bots.getPreviewInfo.lang_code}
    
  • bots.getPreviewMedias —

    fileSourceBotPreviewMedia{bot: extractUserIdFromInputUserAndStore(bots.getPreviewMedias.bot)}
    
  • help.getPremiumPromo —

    fileSourcePremiumPromo{}
    
  • messages.getDocumentByHash —

    fileSourceDocumentByHash{sha256: messages.getDocumentByHash.sha256, size: messages.getDocumentByHash.size, mime_type: messages.getDocumentByHash.mime_type}
    
  • photos.updateProfilePhoto —

    fileSourceUserProfilePhoto{user_id: extractUserIdFromInputUserAndStore(photos.updateProfilePhoto.bot?fallback(inputUserSelf{})), max_id: photos.updateProfilePhoto.(return value).photos.photo.photo.photo.id}
    
  • photos.uploadContactProfilePhoto —

    fileSourceUserProfilePhoto{user_id: extractUserIdFromInputUserAndStore(photos.uploadContactProfilePhoto.user_id), max_id: photos.uploadContactProfilePhoto.(return value).photos.photo.photo.photo.id}
    
  • photos.uploadProfilePhoto —

    fileSourceUserProfilePhoto{user_id: extractUserIdFromInputUserAndStore(photos.uploadProfilePhoto.bot?fallback(inputUserSelf{})), max_id: photos.uploadProfilePhoto.(return value).photos.photo.photo.photo.id}
    
  • stories.createAlbum —

    fileSourceStoryAlbum{peer: extractPeerIdFromInputPeerAndStore(stories.createAlbum.peer)}
    
  • stories.getAlbums —

    fileSourceStoryAlbum{peer: extractPeerIdFromInputPeerAndStore(stories.getAlbums.peer)}
    
  • stories.updateAlbum —

    fileSourceStoryAlbum{peer: extractPeerIdFromInputPeerAndStore(stories.updateAlbum.peer)}
    
  • messages.getSponsoredMessages — не сохранять ссылки на файлы из рекламных сообщений

  • help.getAppUpdate — не обрабатывать ссылки на файлы из недолговечных сведений об обновлении приложения

  • help.getRecentMeUrls — не обрабатывать ссылки на файлы из недавних адресов t.me

  • recentMeUrlChatInvite — не сохранять ссылки, полученные из пригласительных ссылок на чат

  • messages.checkChatInvite — не сохранять ссылки, полученные из пригласительных ссылок на чат

  • messages.getInlineBotResults — результаты инлайн-ботов недолговечны

  • messages.getPreparedInlineMessage — результаты инлайн-ботов недолговечны

  • messages.uploadMedia — только что загруженный медиафайл получит контекст лишь после того, как будет отправлен в чат

  • messages.uploadImportedMedia — только что загруженный медиафайл получит контекст лишь после того, как будет отправлен в чат

  • updateServiceNotification — сервисные уведомления невозможно запросить повторно

  • messages.getWebPagePreview — для вызова этого метода расположения не добавляются, так как на вход он не принимает постоянные идентификаторы; расположение извлекается из постоянных идентификаторов в возвращаемом объекте WebPage

  • payments.resaleStarGifts — контексты для подарков за Telegram Stars ещё не реализованы

  • payments.starGiftUpgradePreview — контексты для подарков за Telegram Stars ещё не реализованы

  • starGift — контексты для подарков за Telegram Stars ещё не реализованы

  • starGiftUnique — контексты для подарков за Telegram Stars ещё не реализованы

  • starGiftCollection — контексты для подарков за Telegram Stars ещё не реализованы

  • payments.starGiftCollections — контексты для подарков за Telegram Stars ещё не реализованы

  • payments.starGiftUpgradeAttributes — контексты для подарков за Telegram Stars ещё не реализованы

  • messages.getCustomEmojiDocuments — не сохранять ссылки на файлы в этом контексте

  • account.uploadTheme — только что загруженный файл темы получит контекст лишь после того, как тема будет создана через account.createTheme