mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-08 12:43:52 +00:00
35 lines
818 B
C++
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
|