Class Message
- java.lang.Object
-
- org.telegram.telegrambots.meta.api.objects.Message
-
- All Implemented Interfaces:
Serializable,BotApiObject
public class Message extends Object implements BotApiObject
- Version:
- 1.0 This object represents a message.
- Author:
- Ruben Bermudez
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
-
-
-
Method Detail
-
getMessageId
public Integer getMessageId()
-
getFrom
public User getFrom()
-
getDate
public Integer getDate()
-
getChat
public Chat getChat()
-
getForwardFrom
public User getForwardFrom()
-
getForwardDate
public Integer getForwardDate()
-
getText
public String getText()
-
getEntities
public List<MessageEntity> getEntities()
-
getCaptionEntities
public List<MessageEntity> getCaptionEntities()
-
getAudio
public Audio getAudio()
-
getDocument
public Document getDocument()
-
getSticker
public Sticker getSticker()
-
hasSticker
public boolean hasSticker()
-
getVideo
public Video getVideo()
-
getAnimation
public Animation getAnimation()
-
getContact
public Contact getContact()
-
getLocation
public Location getLocation()
-
getVenue
public Venue getVenue()
-
getPinnedMessage
public Message getPinnedMessage()
-
getLeftChatMember
public User getLeftChatMember()
-
getNewChatTitle
public String getNewChatTitle()
-
getDeleteChatPhoto
public Boolean getDeleteChatPhoto()
-
getGroupchatCreated
public Boolean getGroupchatCreated()
-
getReplyToMessage
public Message getReplyToMessage()
-
getVoice
public Voice getVoice()
-
getCaption
public String getCaption()
-
getSuperGroupCreated
public Boolean getSuperGroupCreated()
-
getChannelChatCreated
public Boolean getChannelChatCreated()
-
getMigrateToChatId
public Long getMigrateToChatId()
-
getMigrateFromChatId
public Long getMigrateFromChatId()
-
getForwardFromMessageId
public Integer getForwardFromMessageId()
-
isGroupMessage
public boolean isGroupMessage()
-
isUserMessage
public boolean isUserMessage()
-
isChannelMessage
public boolean isChannelMessage()
-
isSuperGroupMessage
public boolean isSuperGroupMessage()
-
getChatId
public Long getChatId()
-
hasText
public boolean hasText()
-
isCommand
public boolean isCommand()
-
hasDocument
public boolean hasDocument()
-
hasVideo
public boolean hasVideo()
-
hasAudio
public boolean hasAudio()
-
hasVoice
public boolean hasVoice()
-
isReply
public boolean isReply()
-
hasLocation
public boolean hasLocation()
-
getForwardFromChat
public Chat getForwardFromChat()
-
getEditDate
public Integer getEditDate()
-
getGame
public Game getGame()
-
hasEntities
public boolean hasEntities()
-
hasPhoto
public boolean hasPhoto()
-
hasInvoice
public boolean hasInvoice()
-
hasSuccessfulPayment
public boolean hasSuccessfulPayment()
-
hasContact
public boolean hasContact()
-
getInvoice
public Invoice getInvoice()
-
getSuccessfulPayment
public SuccessfulPayment getSuccessfulPayment()
-
getVideoNote
public VideoNote getVideoNote()
-
hasVideoNote
public boolean hasVideoNote()
-
getAuthorSignature
public String getAuthorSignature()
-
getForwardSignature
public String getForwardSignature()
-
getMediaGroupId
public String getMediaGroupId()
-
getConnectedWebsite
public String getConnectedWebsite()
-
getPassportData
public PassportData getPassportData()
-
hasPassportData
public boolean hasPassportData()
-
hasAnimation
public boolean hasAnimation()
-
getForwardSenderName
public String getForwardSenderName()
-
setForwardSenderName
public void setForwardSenderName(String forwardSenderName)
-
hasPoll
public boolean hasPoll()
-
getPoll
public Poll getPoll()
-
hasReplyMarkup
public boolean hasReplyMarkup()
-
getReplyMarkup
public InlineKeyboardMarkup getReplyMarkup()
-
-