Skip to main content

disallowedGiftsSettings

Disallow the reception of specific gift types.

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

Fields​

NameTypeRequiredDescription
DisallowUnlimitedStargiftsbool—Disallow the reception of gifts with an unlimited supply (those with the starGift limited flag not set).
DisallowLimitedStargiftsbool—Disallow the reception of limited-supply gifts (those with the starGift.limited flag set).
DisallowUniqueStargiftsbool—Disallow the reception of collectible gifts ».
DisallowPremiumGiftsbool—Disallow the reception of gifted Telegram Premium subscriptions ».
DisallowStargiftsFromChannelsbool—Disallow the reception of gifts sent by channels.

References​