class Message extends AnyRef
Message
This object represents a message.
- Alphabetic
- By Inheritance
- Message
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- 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
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val audio: Option[Audio]
- val caption: Option[String]
- val chat: UserOrGroupChat
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- val contact: Option[Contact]
- val date: Int
- val deleteChatPhoto: Option[Boolean]
- val document: Option[Document]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- val forwardDate: Option[Int]
- val forwardFrom: Option[User]
- val from: User
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val groupChatCreated: Option[Boolean]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val leftChatParticipant: Option[User]
- val location: Option[Location]
- val messageId: Int
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val newChatParticipant: Option[User]
- val newChatPhoto: Option[Array[PhotoSize]]
- val newChatTitle: Option[String]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val photo: Option[Array[PhotoSize]]
- val replyToMessage: Option[Message]
- val sticker: Option[Sticker]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val text: Option[String]
- def toString(): String
- Definition Classes
- AnyRef → Any
- val video: Option[Video]
- val voice: Option[Voice]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated