Constructors

Properties

_peers: PeersIndex

Accessors

  • get caption(): null | string
  • Caption of the story

    Returns null | string

  • get date(): Date
  • Date when this story was posted

    Returns Date

  • get entities(): readonly MessageEntity[]
  • Caption entities (may be empty)

    Returns readonly MessageEntity[]

  • get expireDate(): Date
  • Date when this story will expire

    Returns Date

  • get id(): number
  • ID of the story

    Returns number

  • get interactions(): null | StoryInteractions
  • Information about story interactions

    Returns null | StoryInteractions

  • get isActive(): boolean
  • Whether the story is active (i.e. not expired yet)

    Returns boolean

  • get isContentProtected(): boolean
  • Whether this story is content-protected, i.e. can't be forwarded

    Returns boolean

  • get isEdited(): boolean
  • Whether this story has been edited

    Returns boolean

  • get isMy(): boolean
  • Whether this story has been posted by the current user

    Returns boolean

  • get isPinned(): boolean
  • Whether this story is pinned

    Returns boolean

  • get isShort(): boolean
  • Whether this object contains reduced set of fields.

    When true, these field will not contain correct data: privacyRules, interactiveAreas

    Returns boolean

  • get media(): StoryMedia
  • Story media.

    Currently, can only be Photo or Video.

    Returns StoryMedia

  • get privacyRules(): null | TypePrivacyRule[]
  • Privacy rules of the story.

    Only available when isMy is true.

    Returns null | TypePrivacyRule[]

  • get sentReactionEmoji(): null | ReactionEmoji
  • Emoji representing a reaction sent by the current user, if any

    Returns null | ReactionEmoji