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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<MessageEntity>getCaptionEntities()LonggetChatId()List<MessageEntity>getEntities()List<User>getNewChatMembers()booleanhasAnimation()booleanhasAudio()booleanhasContact()booleanhasDice()booleanhasDocument()booleanhasEntities()booleanhasInvoice()booleanhasLocation()booleanhasPassportData()booleanhasPhoto()booleanhasPoll()booleanhasReplyMarkup()booleanhasSticker()booleanhasSuccessfulPayment()booleanhasText()booleanhasViaBot()booleanhasVideo()booleanhasVideoNote()booleanhasVoice()booleanisChannelMessage()booleanisCommand()booleanisGroupMessage()booleanisReply()booleanisSuperGroupMessage()booleanisUserMessage()
-
-
-
Method Detail
-
getEntities
public List<MessageEntity> getEntities()
-
getCaptionEntities
public List<MessageEntity> getCaptionEntities()
-
hasSticker
public boolean hasSticker()
-
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()
-
hasEntities
public boolean hasEntities()
-
hasPhoto
public boolean hasPhoto()
-
hasInvoice
public boolean hasInvoice()
-
hasSuccessfulPayment
public boolean hasSuccessfulPayment()
-
hasContact
public boolean hasContact()
-
hasVideoNote
public boolean hasVideoNote()
-
hasPassportData
public boolean hasPassportData()
-
hasAnimation
public boolean hasAnimation()
-
hasPoll
public boolean hasPoll()
-
hasDice
public boolean hasDice()
-
hasViaBot
public boolean hasViaBot()
-
hasReplyMarkup
public boolean hasReplyMarkup()
-
-