Skip to content
Back to top
View this page

# UniqueGiftColors

class telegram.UniqueGiftColors(model_custom_emoji_id, symbol_custom_emoji_id, light_theme_main_color, light_theme_other_colors, dark_theme_main_color, dark_theme_other_colors, *, api_kwargs=None)

  Bases: `telegram.TelegramObject`

  This object contains information about the color scheme for a user’s name, message replies and link previews based on a unique gift.

  Objects of this class are comparable in terms of equality. Two objects of this class are considered equal if their `model_custom_emoji_id`, `symbol_custom_emoji_id`, `light_theme_main_color`, `light_theme_other_colors`, `dark_theme_main_color`, and `dark_theme_other_colors` are equal.

  Available In

  - `telegram.ChatFullInfo.unique_gift_colors`

  - `telegram.UniqueGift.colors`

  Added in version 22.6.

  Parameters:

    - model_custom_emoji_id (`str`) – Custom emoji identifier of the unique gift’s model.

    - symbol_custom_emoji_id (`str`) – Custom emoji identifier of the unique gift’s symbol.

    - light_theme_main_color (`int`) – Main color used in light themes; RGB format.

    - light_theme_other_colors (Sequence[`int`]) – List of 1-3 additional colors used in light themes; RGB format. Accepts any `collections.abc.Sequence` as input instead of just a list. The input is converted to a tuple.

    - dark_theme_main_color (`int`) – Main color used in dark themes; RGB format.

    - dark_theme_other_colors (Sequence[`int`]) – List of 1-3 additional colors used in dark themes; RGB format. Accepts any `collections.abc.Sequence` as input instead of just a list. The input is converted to a tuple.

  model_custom_emoji_id

    Custom emoji identifier of the unique gift’s model.

    Type:

      `str`

  symbol_custom_emoji_id

    Custom emoji identifier of the unique gift’s symbol.

    Type:

      `str`

  light_theme_main_color

    Main color used in light themes; RGB format.

    Type:

      `int`

  light_theme_other_colors

    Tuple of 1-3 additional colors used in light themes; RGB format.

    Type:

      Tuple[`int`]

  dark_theme_main_color

    Main color used in dark themes; RGB format.

    Type:

      `int`

  dark_theme_other_colors

    Tuple of 1-3 additional colors used in dark themes; RGB format.

    Type:

      Tuple[`int`]