public interface Message
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
asJson()
Gets the JSON object provided by the Telegram API
|
default Message |
forwardMessage(Chat chat)
A simple method which allows you to forward this Message to another chat simply by providing a Chat object
|
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
|
long getMessageId()
long getTimeStamp()
User getSender()
Chat getChat()
User getForwardedFrom()
Chat getChatForwardedFrom()
Integer getForwardFromMessageId()
Long getForwardedDate()
Message getRepliedTo()
Long getEditDate()
Content getContent()
org.json.JSONObject asJson()
TelegramBot getBotInstance()
default Message forwardMessage(Chat chat)
chat - The Chat you want to send the Message toCopyright © 2017. All rights reserved.