Class InputPaidMediaPhoto

java.lang.Object
io.github.natanimn.telebof.types.input.InputPaidMediaPhoto
All Implemented Interfaces:
InputMedia, InputPaidMedia, Serializable

public class InputPaidMediaPhoto extends Object implements InputPaidMedia
The paid media to send is a photo.
Since:
3 March 2025
See Also:
  • Constructor Details

    • InputPaidMediaPhoto

      public InputPaidMediaPhoto(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.
    • InputPaidMediaPhoto

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

    • getFiles

      public List<File> getFiles()
      Used only for internal purpose
      Specified by:
      getFiles in interface InputMedia
      Returns:
      list of file
    • hasFile

      public boolean hasFile()
      Used only for internal purpose
      Specified by:
      hasFile in interface InputMedia
      Returns:
      boolean