AyuGramDesktop/Telegram/SourceFiles/info/bot/starref/info_bot_starref_common.h
2024-12-04 13:51:19 +04:00

24 lines
630 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
namespace Ui {
class AbstractButton;
class VerticalLayout;
} // namespace Ui
namespace Info::BotStarRef {
[[nodiscard]] not_null<Ui::AbstractButton*> AddViewListButton(
not_null<Ui::VerticalLayout*> parent,
rpl::producer<QString> title,
rpl::producer<QString> subtitle);
[[nodiscard]] QString FormatStarRefCommission(ushort commission);
} // namespace Info::BotStarRef