DisallowedGiftsSettings

class pyrogram.raw.types.DisallowedGiftsSettings

Disallow the reception of specific gift types.

Constructor of DisallowedGiftsSettings.

Details:
  • Layer: 223

  • ID: 71F276C4

Parameters:
  • disallow_unlimited_stargifts (bool, optional) – Disallow the reception of gifts with an unlimited supply (those with the starGift.limited flag not set).

  • disallow_limited_stargifts (bool, optional) – Disallow the reception of limited-supply gifts (those with the starGift.limited flag set).

  • disallow_unique_stargifts (bool, optional) – Disallow the reception of collectible gifts ».

  • disallow_premium_gifts (bool, optional) – Disallow the reception of gifted Telegram Premium subscriptions ».

  • disallow_stargifts_from_channels (bool, optional)

TL Schema

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

Parameter Tree

DisallowedGiftsSettings
├── disallow_unlimited_stargiftstrue (optional)
├── disallow_limited_stargiftstrue (optional)
├── disallow_unique_stargiftstrue (optional)
├── disallow_premium_giftstrue (optional)
└── disallow_stargifts_from_channelstrue (optional)

Example

DisallowedGiftsSettings(
)