• Set peer color and optionally background pattern

    Parameters

    • client: ITelegramClient
    • params: {
          backgroundEmojiId?: Long;
          color: number;
          forProfile?: boolean;
          peer?: InputPeerLike;
      }
      • OptionalbackgroundEmojiId?: Long

        Background pattern emoji ID.

        Must be an adaptive emoji, otherwise the request will fail.

      • color: number

        Color identificator

        Note that this value is not an RGB color representation. Instead, it is a number which should be used to pick a color from a predefined list of colors:

        • 0-6 are the default colors used by Telegram clients: red, orange, purple, green, sea, blue, pink
        • >= 7 are returned by help.getAppConfig.
      • OptionalforProfile?: boolean

        Whether to set this color for the profile header instead of chat name/replies.

        Currently only available for the current user.

      • Optionalpeer?: InputPeerLike

        Peer where to update the color.

        By default will change the color for the current user

    Returns Promise<void>