Class InlineQueryResultAudio

java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryMediaResult<InlineQueryResultAudio>
io.github.natanimn.telebof.types.inline.InlineQueryResultAudio
All Implemented Interfaces:
InlineQueryResult, Serializable

public class InlineQueryResultAudio extends InlineQueryMediaResult<InlineQueryResultAudio>
Represents a link to an MP3 audio file. By default, this audio file will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the audio.
Since:
3 March 2025
Author:
Natanim
See Also:
  • Field Details

    • title

      private String title
    • audioUrl

      @SerializedName("audio_url") private String audioUrl
    • performer

      private String performer
    • audioDuration

      @SerializedName("audio_duration") private Integer audioDuration
  • Constructor Details

    • InlineQueryResultAudio

      public InlineQueryResultAudio(String id, String audioUrl, String title)
      Required
      Parameters:
      id - Unique identifier for this result, 1-64 Bytes
      audioUrl - A valid URL for the audio file
      title - Title
  • Method Details