Class InputMediaAudio
java.lang.Object
io.github.natanimn.telebof.types.input.InputMediaBuilder<InputMediaAudio>
io.github.natanimn.telebof.types.input.InputMediaAudio
- All Implemented Interfaces:
- InputMedia,- Serializable
Represents an audio file to be treated as music to be sent.
- Since:
- 3 March 2025
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class io.github.natanimn.telebof.types.input.InputMediaBuildercaption, captionEntities, getFiles, hasFile, parseMode
- 
Constructor Details- 
InputMediaAudioRequired- 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.
 
- 
InputMediaAudio
 
- 
- 
Method Details- 
thumbnailOptional- Parameters:
- thumbnail- humbnail of the file sent; can be ignored if thumbnail generation for the file is supported server-side. The thumbnail should be in JPEG format and less than 200 kB in size. A thumbnail's width and height should not exceed 320.
- Returns:
- InputMediaAudio
 
- 
performerOptional- Parameters:
- performer- Performer of the audio
- Returns:
- InputMediaAudio
 
- 
titleOptional- Parameters:
- title- Title of the audio
- Returns:
- InputMediaAudio
 
- 
durationOptional- Parameters:
- duration- Duration of the audio in seconds
- Returns:
- InputMediaAudio
 
 
-