Class InlineQueryResultCachedVoice

java.lang.Object
io.github.natanimn.telebof.types.inline.InlineQueryResultCachedVoice
All Implemented Interfaces:
InlineQueryResult, Serializable

public class InlineQueryResultCachedVoice extends Object
Represents a link to a voice message stored on the Telegram servers. By default, this voice message will be sent by the user. Alternatively, you can use setInputMessageContent(io.github.natanimn.telebof.types.input.InputTextMessageContent) to send a message with the specified content instead of the voice message.
Since:
3 March 2025
See Also:
  • Constructor Details

    • InlineQueryResultCachedVoice

      public InlineQueryResultCachedVoice(String id, String voiceFileId, String title)
      Required
      Parameters:
      id - Unique identifier for this result, 1-64 bytes
      voiceFileId - A valid file identifier for the voice message
      title - Voice message title
  • Method Details