payments_reaction_process.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. enum class HistoryReactionSource : char;
  9. class HistoryItem;
  10. namespace HistoryView {
  11. class Element;
  12. } // namespace HistoryView
  13. namespace Ui {
  14. class Show;
  15. } // namespace Ui
  16. namespace Window {
  17. class SessionController;
  18. } // namespace Window
  19. namespace Payments {
  20. [[nodiscard]] bool LookupMyPaidAnonymous(not_null<HistoryItem*> item);
  21. void TryAddingPaidReaction(
  22. not_null<HistoryItem*> item,
  23. HistoryView::Element *view,
  24. int count,
  25. std::optional<PeerId> shownPeer,
  26. std::shared_ptr<Ui::Show> show,
  27. Fn<void(bool)> finished = nullptr);
  28. void ShowPaidReactionDetails(
  29. not_null<Window::SessionController*> controller,
  30. not_null<HistoryItem*> item,
  31. HistoryView::Element *view,
  32. HistoryReactionSource source);
  33. } // namespace Payments