Class InputMedia<T extends InputMedia<T>>
java.lang.Object
com.pengrad.telegrambot.model.request.InputMedia<T>
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
InputMediaAnimation
,InputMediaAudio
,InputMediaDocument
,InputMediaPhoto
,InputMediaVideo
public abstract class InputMedia<T extends InputMedia<T>>
extends java.lang.Object
implements java.io.Serializable
Stas Parshin
23 November 2017
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description T
caption(java.lang.String caption)
T
captionEntities(MessageEntity... entities)
T
contentType(java.lang.String contentType)
T
fileName(java.lang.String fileName)
java.util.Map<java.lang.String,java.lang.Object>
getAttachments()
java.lang.String
getContentType()
protected abstract java.lang.String
getDefaultContentType()
protected abstract java.lang.String
getDefaultFileName()
java.lang.String
getFileName()
java.lang.String
getInputFileId()
InputFile
inputFile()
T
parseMode(ParseMode parseMode)
T
thumb(byte[] thumb)
Deprecated.Use thumbnail insteadT
thumb(java.io.File thumb)
Deprecated.Use thumbnail insteadT
thumbnail(byte[] thumbnail)
T
thumbnail(java.io.File thumbnail)
-
Method Details
-
getAttachments
public java.util.Map<java.lang.String,java.lang.Object> getAttachments() -
inputFile
-
getInputFileId
public java.lang.String getInputFileId() -
thumb
Deprecated.Use thumbnail instead -
thumb
Deprecated.Use thumbnail instead -
thumbnail
-
thumbnail
-
caption
-
parseMode
-
captionEntities
-
fileName
-
contentType
-
getFileName
public java.lang.String getFileName() -
getContentType
public java.lang.String getContentType() -
getDefaultFileName
protected abstract java.lang.String getDefaultFileName() -
getDefaultContentType
protected abstract java.lang.String getDefaultContentType()
-