Packages

class Message extends AnyRef

Message

This object represents a message.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Message
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Message(messageId: Int, from: User, date: Int, chat: UserOrGroupChat, forwardFrom: Option[User] = None, forwardDate: Option[Int] = None, replyToMessage: Option[Message] = None, text: Option[String] = None, audio: Option[Audio] = None, document: Option[Document] = None, photo: Option[Array[PhotoSize]] = None, sticker: Option[Sticker] = None, video: Option[Video] = None, voice: Option[Voice] = None, caption: Option[String] = None, contact: Option[Contact] = None, location: Option[Location] = None, newChatParticipant: Option[User] = None, leftChatParticipant: Option[User] = None, newChatTitle: Option[String] = None, newChatPhoto: Option[Array[PhotoSize]] = None, deleteChatPhoto: Option[Boolean] = None, groupChatCreated: Option[Boolean] = None)

    messageId

    Unique message identifier

    from

    Sender

    date

    Date the message was sent in Unix time

    chat

    User or GroupChat Conversation the message belongs to — user in case of a private message, GroupChat in case of a group

    forwardFrom

    Optional. For forwarded messages, sender of the original message

    forwardDate

    Optional. For forwarded messages, date the original message was sent in Unix time

    replyToMessage

    Optional. For replies, the original message. Note that the Message object in this field will not contain further replyToMessage fields even if it itself is a reply.

    text

    Optional. For text messages, the actual UTF-8 text of the message

    audio

    Optional. Message is an audio file, information about the file

    document

    Optional. Message is a general file, information about the file

    photo

    Optional. Message is a photo, available sizes of the photo

    sticker

    Optional. Message is a sticker, information about the sticker

    video

    Optional. Message is a video, information about the video

    voice

    Optional. Message is a voice message, information about the file

    caption

    Optional. Caption for the photo or video

    contact

    Optional. Message is a shared contact, information about the contact

    location

    Optional. Message is a shared location, information about the location

    newChatParticipant

    Optional. A new member was added to the group, information about them (this member may be bot itself)

    leftChatParticipant

    Optional. A member was removed from the group, information about them (this member may be bot itself)

    newChatTitle

    Optional. A group title was changed to this value

    newChatPhoto

    Optional. A group photo was change to this value

    deleteChatPhoto

    Optional. Informs that the group photo was deleted

    groupChatCreated

    Optional. Informs that the group has been created

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val audio: Option[Audio]
  6. val caption: Option[String]
  7. val chat: UserOrGroupChat
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. val contact: Option[Contact]
  10. val date: Int
  11. val deleteChatPhoto: Option[Boolean]
  12. val document: Option[Document]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  15. val forwardDate: Option[Int]
  16. val forwardFrom: Option[User]
  17. val from: User
  18. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. val groupChatCreated: Option[Boolean]
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. val leftChatParticipant: Option[User]
  23. val location: Option[Location]
  24. val messageId: Int
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. val newChatParticipant: Option[User]
  27. val newChatPhoto: Option[Array[PhotoSize]]
  28. val newChatTitle: Option[String]
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. val photo: Option[Array[PhotoSize]]
  32. val replyToMessage: Option[Message]
  33. val sticker: Option[Sticker]
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. val text: Option[String]
  36. def toString(): String
    Definition Classes
    AnyRef → Any
  37. val video: Option[Video]
  38. val voice: Option[Voice]
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped