Package com.jtelegram.api.message.impl
Class TextMessage
- java.lang.Object
-
- com.jtelegram.api.message.Message<java.lang.String>
-
- com.jtelegram.api.message.impl.TextMessage
-
public class TextMessage extends Message<java.lang.String>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jtelegram.api.message.Message
Message.Deserializer
-
-
Constructor Summary
Constructors Constructor Description TextMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContent()
java.util.List<MessageEntity>
getEntities()
java.lang.String
getText()
EditTextMessage.EditTextMessageBuilder
toEditTextRequest()
Creates a request builder for editing the text of this message.java.lang.String
toString()
-
Methods inherited from class com.jtelegram.api.message.Message
getAuthorSignature, getChat, getDate, getEditDate, getForwardDate, getForwardedFrom, getForwardedFromChat, getForwardedFromMessageId, getForwardSignature, getFrom, getMessageId, getReplyToMessage, getSender, toDeleteRequest, toEditReplyMarkupRequest, toForwardRequest
-
-
-
-
Method Detail
-
getContent
public java.lang.String getContent()
- Specified by:
getContent
in classMessage<java.lang.String>
-
getEntities
public java.util.List<MessageEntity> getEntities()
-
toEditTextRequest
public EditTextMessage.EditTextMessageBuilder toEditTextRequest()
Creates a request builder for editing the text of this message.- Returns:
- the request builder
-
getText
public java.lang.String getText()
-
-