Interface MultiPartApiMethod<R extends Serializable>

Type Parameters:
R - the type of the response expected from the API method
All Superinterfaces:
ApiMethod<R>
All Known Subinterfaces:
MultiPartApiMethodBoolean, MultiPartApiMethodMessage
All Known Implementing Classes:
AddStickerToSet, CreateNewStickerSet, EditMessageMedia, EditStory, PostStory, ReplaceStickerInSet, SendAnimation, SendAudio, SendDocument, SendMediaGroup, SendPaidMedia, SendPhoto, SendSticker, SendVideo, SendVideoNote, SendVoice, SetBusinessAccountProfilePhoto, SetChatPhoto, SetMyProfilePhoto, SetStickerSetThumbnail, SetWebhook, UploadStickerFile

public interface MultiPartApiMethod<R extends Serializable> extends ApiMethod<R>
Interface representing a multipart API method.

This interface extends the ApiMethod interface and provides methods to access parameters and input files, as well as a method to build a request with a multipart body.

  • Method Details

    • getParameters

      @NotNull @NotNull Map<String,Object> getParameters()
      Gets the parameters of the multipart API method.
      Returns:
      a map containing the parameters of the multipart API method