Skip to main content

disallowedGiftsSettings

Disallow the reception of specific gift types.

type tg.DisallowedGiftsSettings struct { /* ... */ }

Fields

NameTypeRequiredDescription
DisallowUnlimitedStargiftsboolDisallow the reception of gifts with an unlimited supply (those with the starGift limited flag not set).
DisallowLimitedStargiftsboolDisallow the reception of limited-supply gifts (those with the starGift.limited flag set).
DisallowUniqueStargiftsboolDisallow the reception of collectible gifts ».
DisallowPremiumGiftsboolDisallow the reception of gifted Telegram Premium subscriptions ».
DisallowStargiftsFromChannelsboolDisallow the reception of gifts sent by channels.

References