/* 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 GenericBox; class NumberInput; class SettingsButton; struct InviteLinkFields { QString link; QString label; TimeId expireDate = 0; int usageLimit = 0; int subscriptionCredits = 0; bool requestApproval = false; bool isGroup = false; bool isPublic = false; }; struct InviteLinkSubscriptionToggle final { not_null button; not_null amount; }; void EditInviteLinkBox( not_null box, Fn fillSubscription, const InviteLinkFields &data, Fn done); void CreateInviteLinkBox( not_null box, Fn fillSubscription, bool isGroup, bool isPublic, Fn done); } // namespace Ui