api_toggling_media.h 990 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 ChatHelpers {
  9. class Show;
  10. } // namespace ChatHelpers
  11. namespace Api {
  12. void ToggleFavedSticker(
  13. std::shared_ptr<ChatHelpers::Show> show,
  14. not_null<DocumentData*> document,
  15. Data::FileOrigin origin);
  16. void ToggleFavedSticker(
  17. std::shared_ptr<ChatHelpers::Show> show,
  18. not_null<DocumentData*> document,
  19. Data::FileOrigin origin,
  20. bool faved);
  21. void ToggleRecentSticker(
  22. not_null<DocumentData*> document,
  23. Data::FileOrigin origin,
  24. bool saved);
  25. void ToggleSavedGif(
  26. std::shared_ptr<ChatHelpers::Show> show,
  27. not_null<DocumentData*> document,
  28. Data::FileOrigin origin,
  29. bool saved);
  30. void ToggleSavedRingtone(
  31. not_null<DocumentData*> document,
  32. Data::FileOrigin origin,
  33. Fn<void()> &&done,
  34. bool saved);
  35. } // namespace Api