class Hamilton::Types::InlineQueryResultCachedAudio

Overview

Represents a link to an MP3 audio file stored on the Telegram servers. 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.

Included Modules

Defined in:

types/inline_query_result.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def audio_file_id : String #

A valid file identifier for the audio file.


def audio_file_id=(audio_file_id : String) #

A valid file identifier for the audio file.


def caption : String | Nil #

Caption, 0-1024 characters after entities parsing.


def caption=(caption : String | Nil) #

Caption, 0-1024 characters after entities parsing.


def caption_entities : Array(Hamilton::Types::MessageEntity) | Nil #

List of special entities that appear in the caption, which can be specified instead of #parse_mode.


def caption_entities=(caption_entities : Array(Hamilton::Types::MessageEntity) | Nil) #

List of special entities that appear in the caption, which can be specified instead of #parse_mode.


def id : String #

Unique identifier for this result, 1-64 Bytes.


def id=(id : String) #

Unique identifier for this result, 1-64 Bytes.


def input_message_content : Hamilton::Types::InputMessageContent | Nil #

Content of the message to be sent instead of the audio.


def input_message_content=(input_message_content : Hamilton::Types::InputMessageContent | Nil) #

Content of the message to be sent instead of the audio.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def parse_mode : String | Nil #

Mode for parsing entities in the audio caption. See formatting options for more details.


def parse_mode=(parse_mode : String | Nil) #

Mode for parsing entities in the audio caption. See formatting options for more details.


def reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil #

Inline keyboard attached to the message.


def reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil) #

Inline keyboard attached to the message.


def type : String #

Type of the result, must be "audio".


def type=(type : String) #

Type of the result, must be "audio".