api_media.h 565 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. class HistoryItem;
  9. namespace Api {
  10. struct RemoteFileInfo;
  11. MTPInputMedia PrepareUploadedPhoto(
  12. not_null<HistoryItem*> item,
  13. RemoteFileInfo info);
  14. MTPInputMedia PrepareUploadedDocument(
  15. not_null<HistoryItem*> item,
  16. RemoteFileInfo info);
  17. bool HasAttachedStickers(MTPInputMedia media);
  18. } // namespace Api