Link Search Menu Expand Document

Constructor: disallowedGiftsSettings

Back to constructors index

Disallow the reception of specific gift types.

Attributes:

NameTypeRequiredDescription
disallow_unlimited_stargiftsBoolOptionalDisallow the reception of gifts with an unlimited supply (those with the starGift.limited flag not set).
disallow_limited_stargiftsBoolOptionalDisallow the reception of limited-supply gifts (those with the starGift.limited flag set).
disallow_unique_stargiftsBoolOptionalDisallow the reception of collectible gifts ».
disallow_premium_giftsBoolOptionalDisallow the reception of gifted Telegram Premium subscriptions ».

Type: DisallowedGiftsSettings

Example:

$disallowedGiftsSettings = ['_' => 'disallowedGiftsSettings', 'disallow_unlimited_stargifts' => Bool, 'disallow_limited_stargifts' => Bool, 'disallow_unique_stargifts' => Bool, 'disallow_premium_gifts' => Bool];