Layer 220
constructor
disallowedGiftsSettings#71f276c4 flags:# disallow_unlimited_stargifts:flags.0?true disallow_limited_stargifts:flags.1?true disallow_unique_stargifts:flags.2?true disallow_premium_gifts:flags.3?true = DisallowedGiftsSettings;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
DisallowUnlimitedStargifts flags.0?true Disallow the reception of gifts with an unlimited supply (those with the star Gift. limited flag not set).
DisallowLimitedStargifts flags.1?true Disallow the reception of limited-supply gifts (those with the star Gift. limited flag set).
DisallowUniqueStargifts flags.2?true Disallow the reception of collectible gifts.
DisallowPremiumGifts flags.3?true Disallow the reception of gifted Telegram Premium subscriptions.

Gogram Example

// Creating DisallowedGiftsSettings constructor
obj := &tg.DisallowedGiftsSettings{

    // Optional fields:
    // DisallowUnlimitedStargifts: true,
    // DisallowLimitedStargifts: true,
    // DisallowUniqueStargifts: true,
    // DisallowPremiumGifts: true,
}