iv_prepare.h 584 B

1234567891011121314151617181920212223242526
  1. /*
  2. This file is part of Telegram Desktop,
  3. the official desktop application for the Telegram messaging service.
  4. For license and copyright information please follow this link:
  5. https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
  6. */
  7. #pragma once
  8. namespace Iv {
  9. struct Options;
  10. struct Prepared;
  11. struct Source {
  12. uint64 pageId = 0;
  13. MTPPage page;
  14. std::optional<MTPPhoto> webpagePhoto;
  15. std::optional<MTPDocument> webpageDocument;
  16. QString name;
  17. int updatedCachedViews = 0;
  18. };
  19. [[nodiscard]] Prepared Prepare(const Source &source, const Options &options);
  20. } // namespace Iv