support_preload.h 453 B

12345678910111213141516171819
  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. class History;
  9. namespace Support {
  10. // Returns histories().request, not api().request.
  11. [[nodiscard]] int SendPreloadRequest(
  12. not_null<History*> history,
  13. Fn<void()> retry);
  14. } // namespace Support