mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-05-11 10:23:56 +02:00
36 lines
852 B
C++
36 lines
852 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 "base/object_ptr.h"
|
|
#include "lang/lang_keys.h"
|
|
|
|
class PeerData;
|
|
class UserData;
|
|
|
|
namespace Ui {
|
|
class BoxContent;
|
|
} // namespace Ui
|
|
|
|
namespace Window {
|
|
class SessionController;
|
|
} // namespace Window
|
|
|
|
[[nodiscard]] object_ptr<Ui::BoxContent> MakeVerifyPeersBox(
|
|
not_null<Window::SessionController*> window,
|
|
not_null<UserData*> bot);
|
|
|
|
struct BotVerifyPhrases {
|
|
tr::phrase<> title;
|
|
tr::phrase<lngtag_name> text;
|
|
tr::phrase<> about;
|
|
tr::phrase<> submit;
|
|
tr::phrase<lngtag_name> sent;
|
|
tr::phrase<> remove;
|
|
};
|
|
[[nodiscard]] BotVerifyPhrases PeerVerifyPhrases(not_null<PeerData*> peer);
|