Class InputMediaPhoto

java.lang.Object
io.github.natanimn.telebof.types.input.InputMediaBuilder<InputMediaPhoto>
io.github.natanimn.telebof.types.input.InputMediaPhoto
All Implemented Interfaces:
InputMedia, Serializable

public class InputMediaPhoto extends InputMediaBuilder<InputMediaPhoto>
Pass True if the photo needs to be covered with a spoiler animation
Since:
3 March 2025
See Also:
  • Constructor Details

    • InputMediaPhoto

      public InputMediaPhoto(String media)
      Required
      Parameters:
      media - File to send. Pass a file_id to send a file that exists on the Telegram servers (recommended), or pass an HTTP URL for Telegram to get a file from the Internet.
    • InputMediaPhoto

      public InputMediaPhoto(File media)
      Required
      Parameters:
      media - File to send. Pass an object of File to upload from your local machine.
  • Method Details

    • hasSpoiler

      public InputMediaPhoto hasSpoiler(boolean has_spoiler)
      Optional
      Parameters:
      has_spoiler - Pass True if the photo needs to be covered with a spoiler animation
      Returns:
      InputMediaPhoto