Documentation - v0.27.1
    Preparing search index...

    A Telegram message.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _peers: PeersIndex
    isScheduled: boolean = false

    Whether the message is scheduled. If it is, then its date is set to future.

    Raw TL object.

    Accessors

    • get isOutgoing(): boolean

      Whether the message is incoming or outgoing:

      • Messages received from other chats are incoming (outgoing = false)
      • Messages sent by you to other chats are outgoing (outgoing = true)
      • Messages to yourself (i.e. Saved Messages) are incoming (outgoing = false)

      Returns boolean

    • get sender(): Peer

      Message sender.

      Usually is a User, but can be a Peer in case the message was sent by an anonymous admin, anonymous premium user, or if the message is a forwarded channel post.

      If the message was sent by an anonymous admin, sender will equal to chat.

      If the message is a forwarded channel post, sender is the channel itself.

      Returns Peer