Package com.jtelegram.api.message.impl
Class PhotoMessage
- java.lang.Object
-
- com.jtelegram.api.message.Message<T>
-
- com.jtelegram.api.message.CaptionableMessage<java.util.List<PhotoSize>>
-
- com.jtelegram.api.message.impl.PhotoMessage
-
public class PhotoMessage extends CaptionableMessage<java.util.List<PhotoSize>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.jtelegram.api.message.Message
Message.Deserializer
-
-
Constructor Summary
Constructors Constructor Description PhotoMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PhotoSize>
getContent()
PhotoSize
getHighestResolutionPhoto()
long
getMediaGroupId()
This field does not exist in the Telegram Docs, however is non-zero whenever a photo is a fragment of an album.java.util.List<PhotoSize>
getPhoto()
EditMessageCaption.EditMessageCaptionBuilder
toEditCaptionRequest()
Creates a request builder for editing the caption of this message.EditMessageMedia.EditMessageMediaBuilder
toEditMediaRequest()
Creates a request builder for editing the media shown in this message.java.lang.String
toString()
-
Methods inherited from class com.jtelegram.api.message.CaptionableMessage
getCaption, getCaptionEntities
-
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.util.List<PhotoSize> getContent()
- Specified by:
getContent
in classMessage<java.util.List<PhotoSize>>
-
getHighestResolutionPhoto
public PhotoSize getHighestResolutionPhoto()
-
toEditCaptionRequest
public EditMessageCaption.EditMessageCaptionBuilder toEditCaptionRequest()
Creates a request builder for editing the caption of this message.- Returns:
- the request builder
-
toEditMediaRequest
public EditMessageMedia.EditMessageMediaBuilder toEditMediaRequest()
Creates a request builder for editing the media shown in this message.- Returns:
- the request builder
-
getPhoto
public java.util.List<PhotoSize> getPhoto()
-
getMediaGroupId
public long getMediaGroupId()
This field does not exist in the Telegram Docs, however is non-zero whenever a photo is a fragment of an album. Albums are collection of images and videos that have a max size of 10. The Telegram Bot has no evident way of checking when it has received the whole album, so do with this as you will
-
toString
public java.lang.String toString()
- Overrides:
toString
in classCaptionableMessage<java.util.List<PhotoSize>>
-
-