Details about the original star gift

Constructors

Properties

_peers: PeersIndex

Accessors

  • get date(): Date
  • Date when the original star gift was sent

    Returns Date

  • get message(): null | TextWithEntities
  • Message attached to the original star gift

    Returns null | TextWithEntities

  • get recipient(): Peer
  • Peer who received the original star gift, if available

    Note: recipientId is always available. If ID is available, but this field throws an error, you should try fetching the peer manually using getPeer)

    Returns Peer

  • get recipientId(): number
  • ID of the peer who received the original star gift

    Returns number

  • get sender(): null | Peer
  • Peer who sent the original star gift, if available

    Note: in some cases, senderId might be available, but not this field. In such cases, you should try fetching the peer manually using getPeer)

    Returns null | Peer

  • get senderId(): null | number
  • ID of the peer who sent the original star gift

    Returns null | number