tdesktop/Telegram/SourceFiles/iv/iv_prepare.h

27 lines
584 B
C
Raw Normal View History

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
namespace Iv {
struct Options;
struct Prepared;
struct Source {
2024-03-12 09:50:40 +00:00
uint64 pageId = 0;
MTPPage page;
std::optional<MTPPhoto> webpagePhoto;
std::optional<MTPDocument> webpageDocument;
QString name;
int updatedCachedViews = 0;
};
2024-03-12 09:06:27 +00:00
[[nodiscard]] Prepared Prepare(const Source &source, const Options &options);
} // namespace Iv