Files
AyuGramDesktop/Telegram/SourceFiles/chat_helpers/share_message_phrase_factory.h
T
2026-05-19 12:35:31 +04:00

35 lines
818 B
C++

/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#pragma once
#include "ui/toast/toast.h"
class PeerData;
namespace Main {
class Session;
} // namespace Main
namespace ChatHelpers {
struct ForwardedMessagePhraseArgs final {
size_t toCount = 0;
bool singleMessage = false;
PeerData *to1 = nullptr;
PeerData *to2 = nullptr;
bool toSelfWithPremiumIsEmpty = true;
};
[[nodiscard]] rpl::producer<TextWithEntities> ForwardedMessagePhrase(
const ForwardedMessagePhraseArgs &args);
[[nodiscard]] Ui::Toast::ClickHandlerFilter ForwardedToSavedMessagesFilter(
not_null<Main::Session*> session);
} // namespace ChatHelpers