share_message_phrase_factory.h 570 B

123456789101112131415161718192021222324
  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 PeerData;
  9. namespace ChatHelpers {
  10. struct ForwardedMessagePhraseArgs final {
  11. size_t toCount = 0;
  12. bool singleMessage = false;
  13. PeerData *to1 = nullptr;
  14. PeerData *to2 = nullptr;
  15. };
  16. rpl::producer<TextWithEntities> ForwardedMessagePhrase(
  17. const ForwardedMessagePhraseArgs &args);
  18. } // namespace ChatHelpers