Information about forwarded message origin

Constructors

Properties

Accessors

Methods

Constructors

Properties

_peers: PeersIndex

Accessors

  • get date(): Date
  • Date the original message was sent

    Returns Date

  • get fromMessageId(): null | number
  • For messages forwarded from channels, identifier of the original message in the channel

    (only availale if fromChat is not null)

    Returns null | number

  • get sender(): PeerSender
  • Sender of the original message (either user or a channel) or their name (for users with private forwards)

    Returns PeerSender

  • get signature(): null | string
  • For messages forwarded from channels, signature of the post author (if present)

    Returns null | string

Methods

  • For "saved" messages (i.e. messages forwarded to yourself, "Saved Messages"), the peer where the message was originally sent.

    null for other messages, you might want to use sender instead

    Returns null | Peer