Interactive element containing a reaction.

Number of reactions should be taken from StoryViews by emoji ID

For whatever reason, in MTProto dimensions of these are expected to be 16:9

Hierarchy

  • StoryInteractiveArea
    • StoryInteractiveReaction

Constructors

Properties

Accessors

Constructors

Properties

type: "reaction" = ...

Accessors

  • get emoji(): ReactionEmoji
  • Emoji representing the reaction

    Returns ReactionEmoji

  • get height(): number
  • Height of the area

    Returns number

  • get isDark(): boolean
  • Whether this reaction is on a dark background

    Returns boolean

  • get isFlipped(): boolean
  • Whether this reaction is flipped (i.e. has tail on the left)

    Returns boolean

  • get rotation(): number
  • Rotation of the area

    Returns number

  • get width(): number
  • Width of the area

    Returns number

  • get x(): number
  • X coordinate of the top-left corner of the area

    Returns number

  • get y(): number
  • Y coordinate of the top-left corner of the area

    Returns number