class TelegramBot::InlineQueryResultVoice

Defined in:

telegram_bot/types/inline/inline_query_result_voice.cr

Constant Summary

FIELDS = {type: {type: String, mustbe: "voice"}, id: String, voice_url: String, title: String, voice_duration: {type: Int32, nilable: true}, reply_markup: {type: InlineKeyboardMarkup, nilable: true}, input_message_content: {type: InputMessageContent, nilable: true}}

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, voice_url : String, title : String, voice_duration : Int32 | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil) #

[View source]
def self.new(__temp_484 : JSON::PullParser) #

[View source]

Instance Method Detail

def id : String #

[View source]
def id=(_id : String) #

[View source]
def input_message_content : InputMessageContent | Nil #

[View source]
def input_message_content=(_input_message_content : InputMessageContent | Nil) #

[View source]
def reply_markup : InlineKeyboardMarkup | Nil #

[View source]
def reply_markup=(_reply_markup : InlineKeyboardMarkup | Nil) #

[View source]
def title : String #

[View source]
def title=(_title : String) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def type : String #

[View source]
def type=(_type : String) #

[View source]
def voice_duration : Int32 | Nil #

[View source]
def voice_duration=(_voice_duration : Int32 | Nil) #

[View source]
def voice_url : String #

[View source]
def voice_url=(_voice_url : String) #

[View source]