Layer 220
DisallowedGiftsSettings
Disallow the reception of specific gift types.
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. |
Returns
DisallowedGiftsSettingsGogram Example
// Creating DisallowedGiftsSettings constructor obj := &tg.DisallowedGiftsSettings{ // Optional fields: // DisallowUnlimitedStargifts: true, // DisallowLimitedStargifts: true, // DisallowUniqueStargifts: true, // DisallowPremiumGifts: true, }