| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJson()
Gets the JSON object provided by the Telegram API
|
static Message |
createMessage(org.json.JSONObject jsonObject,
TelegramBot telegramBot) |
TelegramBot |
getBotInstance()
Gets the TelegramBot instance associated with this Message object
|
Chat |
getChat()
Get the chat this message was sent in
|
Chat |
getChatForwardedFrom()
Gets the chat the message was forwarded from
|
Content |
getContent()
Gets the content of the message
|
Long |
getEditDate()
Gets the UNIX timestamp of when the message was edited
|
Long |
getForwardedDate()
Gets the UNIX timestamp of when the original forwarded message was sent
|
User |
getForwardedFrom()
Gets the user the message was forwarded from
|
Integer |
getForwardFromMessageId()
Gets the ID of the original message when a message is forwarded from a Channel
|
long |
getMessageId()
Get the ID of the message
|
Message |
getRepliedTo()
Gets the message that this message replied to
|
User |
getSender()
Get the user that sent the message
|
long |
getTimeStamp()
Get the UNIX timestamp of when this message was sent/received at
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforwardMessagepublic static Message createMessage(org.json.JSONObject jsonObject, TelegramBot telegramBot)
public long getMessageId()
getMessageId in interface Messagepublic long getTimeStamp()
getTimeStamp in interface Messagepublic User getSender()
public Chat getChat()
public User getForwardedFrom()
getForwardedFrom in interface Messagepublic Chat getChatForwardedFrom()
getChatForwardedFrom in interface Messagepublic Integer getForwardFromMessageId()
getForwardFromMessageId in interface Messagepublic Long getForwardedDate()
getForwardedDate in interface Messagepublic Message getRepliedTo()
getRepliedTo in interface Messagepublic Long getEditDate()
getEditDate in interface Messagepublic Content getContent()
getContent in interface Messagepublic org.json.JSONObject asJson()
public TelegramBot getBotInstance()
MessagegetBotInstance in interface MessageCopyright © 2017. All rights reserved.