/* 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 channel, bool restricted, Fn failed); struct RewardReceiver final { ChannelData *currencyReceiver = nullptr; PeerData *creditsReceiver = nullptr; Fn creditsAmount; }; void HandleWithdrawalButton( RewardReceiver receiver, not_null button, std::shared_ptr show); } // namespace Api