Class InputFileMessageRequest<T>
- java.lang.Object
-
- com.jtelegram.api.requests.framework.AbstractTelegramRequest
-
- com.jtelegram.api.requests.framework.QueryTelegramRequest<T>
-
- com.jtelegram.api.requests.message.framework.req.SendableChatRequest<T>
-
- com.jtelegram.api.requests.message.framework.req.SendableMessageRequest<T>
-
- com.jtelegram.api.requests.message.framework.req.InputFileMessageRequest<T>
-
- All Implemented Interfaces:
InputFileRequest
,TelegramRequest
- Direct Known Subclasses:
SendAnimation
,SendAudio
,SendDocument
,SendMediaGroup
,SendPhoto
,SendSticker
,SendVideo
,SendVideoNote
,SendVoice
public abstract class InputFileMessageRequest<T> extends SendableMessageRequest<T> implements InputFileRequest
-
-
Field Summary
-
Fields inherited from class com.jtelegram.api.requests.framework.AbstractTelegramRequest
errorHandler, gson
-
Fields inherited from interface com.jtelegram.api.message.input.file.InputFileRequest
OCTET_STREAM_TYPE
-
Fields inherited from interface com.jtelegram.api.requests.framework.TelegramRequest
JSON_MEDIA_TYPE
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InputFileMessageRequest(java.lang.String endPoint, java.lang.Class<T> callbackType, java.util.function.Consumer<T> callback, java.util.function.Consumer<TelegramException> errorHandler, ChatId chatId, java.lang.Integer replyToMessageId, java.lang.Boolean disableNotification, ReplyMarkup replyMarkup)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description okhttp3.Request.Builder
build(TelegramBot bot)
okhttp3.Request.Builder
superBuild(TelegramBot bot)
-
Methods inherited from class com.jtelegram.api.requests.message.framework.req.SendableMessageRequest
getDisableNotification, getReplyMarkup, getReplyToMessageId, isValid, setReplyToMessageId
-
Methods inherited from class com.jtelegram.api.requests.message.framework.req.SendableChatRequest
canEqual, equals, getChatId, hashCode, setChatId
-
Methods inherited from class com.jtelegram.api.requests.framework.QueryTelegramRequest
handleResponse, setCallback
-
Methods inherited from class com.jtelegram.api.requests.framework.AbstractTelegramRequest
getBody, getEndPoint, handleError, handleException, serialize, setErrorHandler, validate
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.jtelegram.api.message.input.file.InputFileRequest
getBuilder, getInputFiles
-
-
-
-
Constructor Detail
-
InputFileMessageRequest
protected InputFileMessageRequest(java.lang.String endPoint, java.lang.Class<T> callbackType, java.util.function.Consumer<T> callback, java.util.function.Consumer<TelegramException> errorHandler, ChatId chatId, java.lang.Integer replyToMessageId, java.lang.Boolean disableNotification, ReplyMarkup replyMarkup)
-
-
Method Detail
-
build
public okhttp3.Request.Builder build(TelegramBot bot)
- Specified by:
build
in interfaceTelegramRequest
-
superBuild
public okhttp3.Request.Builder superBuild(TelegramBot bot)
- Specified by:
superBuild
in interfaceInputFileRequest
-
-