mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-11 11:47:09 +02:00
35 lines
750 B
C++
35 lines
750 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 ChannelData;
|
|
|
|
namespace Ui {
|
|
class RippleButton;
|
|
class Show;
|
|
} // namespace Ui
|
|
|
|
namespace Api {
|
|
|
|
void RestrictSponsored(
|
|
not_null<ChannelData*> channel,
|
|
bool restricted,
|
|
Fn<void(QString)> failed);
|
|
|
|
struct RewardReceiver final {
|
|
ChannelData *currencyReceiver = nullptr;
|
|
PeerData *creditsReceiver = nullptr;
|
|
Fn<uint64()> creditsAmount;
|
|
};
|
|
|
|
void HandleWithdrawalButton(
|
|
RewardReceiver receiver,
|
|
not_null<Ui::RippleButton*> button,
|
|
std::shared_ptr<Ui::Show> show);
|
|
|
|
} // namespace Api
|