struct

Telegram::InlineQueryResultVoice

Inherits JSON::Serializable < Struct < Value < Object

Telegram API type: InlineQueryResultVoice Represents a link to a voice recording in an .OGG container encoded with OPUS. By default, this voice recording will be sent by the user. Alternatively, you can use input_message_content to send a message with the specified content instead of the the voice message.

Constructors

new(type : String, id : String, voice_url : String, title : String, caption : String | Nil = nil, parse_mode : String | Nil = nil, caption_entities : Array(MessageEntity) | Nil = nil, voice_duration : Int64 | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

caption
caption_entities
clone
Source
copy_with(type _type = @type, id _id = @id, voice_url _voice_url = @voice_url, title _title = @title, caption _caption = @caption, parse_mode _parse_mode = @parse_mode, caption_entities _caption_entities = @caption_entities, voice_duration _voice_duration = @voice_duration, reply_markup _reply_markup = @reply_markup, input_message_content _input_message_content = @input_message_content)
Source
id
input_message_content
parse_mode
reply_markup
title
type
voice_duration
voice_url