Skip to content

AcceptedGiftTypes

Type · TDLib 1.8.67 · d1085f9c

Describes gift types that are accepted by a user

AcceptedGiftTypes(
  unlimited_gifts: Bool,
  limited_gifts: Bool,
  upgraded_gifts: Bool,
  gifts_from_channels: Bool,
  premium_subscription: Bool
) → AcceptedGiftTypes

unlimited_gifts

Bool

True, if unlimited regular gifts are accepted

limited_gifts

Bool

True, if limited regular gifts are accepted

upgraded_gifts

Bool

True, if upgraded gifts and regular gifts that can be upgraded for free are accepted

gifts_from_channels

Bool

True, if gifts from channels are accepted subject to other restrictions

premium_subscription

Bool

True, if Telegram Premium subscription is accepted