Layer 227
DisallowedGiftsSettingsObj
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 disallow_stargifts_from_channels:flags.4?true = DisallowedGiftsSettings;
Parameters
| Name | Type | Description |
|---|---|---|
| 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. |
| DisallowStargiftsFromChannels | flags .4? true | Disallow the reception of gifts sent by channels. |
Returns
DisallowedGiftsSettingsGogram Example
// Creating DisallowedGiftsSettingsObj constructor obj := &tg.DisallowedGiftsSettingsObj{ DisallowUnlimitedStargifts: nil, DisallowLimitedStargifts: nil, DisallowUniqueStargifts: nil, DisallowPremiumGifts: nil, DisallowStargiftsFromChannels: nil, }