Files
tdesktop/Telegram/SourceFiles/boxes/report_messages_box.h
John Preston e0536486b6 Add bot reporting to Mini App menus
Task: 2026/08/12/report-bots-from-mini-apps
2026-08-12 22:28:05 +04:00

44 lines
1009 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
template <typename Object>
class object_ptr;
namespace Ui {
class BoxContent;
class Show;
} // namespace Ui
namespace style {
struct ReportBox;
} // namespace style
namespace Window {
class SessionController;
} // namespace Window
class HistoryItem;
class PeerData;
[[nodiscard]] object_ptr<Ui::BoxContent> ReportProfilePhotoBox(
not_null<PeerData*> peer,
not_null<PhotoData*> photo);
void ShowReportMessageBox(
std::shared_ptr<Ui::Show> show,
not_null<PeerData*> peer,
const std::vector<MsgId> &ids,
const std::vector<StoryId> &stories,
const style::ReportBox *stOverride = nullptr,
Fn<Window::SessionController*()> resolveController = nullptr);
void ShowReportEphemeralBox(
std::shared_ptr<Ui::Show> show,
not_null<HistoryItem*> item);