mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
35 lines
804 B
C++
35 lines
804 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
|
|
|
|
class UserData;
|
|
|
|
namespace Main {
|
|
class SessionShow;
|
|
} // namespace Main
|
|
|
|
namespace Ui {
|
|
class GenericBox;
|
|
} // namespace Ui
|
|
|
|
struct CreateManagedBotDescriptor {
|
|
std::shared_ptr<Main::SessionShow> show;
|
|
not_null<UserData*> manager;
|
|
QString suggestedName;
|
|
QString suggestedUsername;
|
|
bool viaDeeplink = false;
|
|
Fn<void(not_null<UserData*>)> done;
|
|
Fn<void()> cancelled;
|
|
};
|
|
|
|
void CreateManagedBotBox(
|
|
not_null<Ui::GenericBox*> box,
|
|
CreateManagedBotDescriptor &&descriptor);
|
|
|
|
void ShowCreateManagedBotBox(CreateManagedBotDescriptor &&descriptor);
|