AyuGramDesktop/Telegram/SourceFiles/iv/iv_prepare.h
2024-03-13 21:20:30 +04:00

26 lines
539 B
C++

/*
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 {
MTPPage page;
std::optional<MTPPhoto> webpagePhoto;
std::optional<MTPDocument> webpageDocument;
QString title;
};
[[nodiscard]] Prepared Prepare(
const Source &source,
const Options &options);
} // namespace Iv