class TelegramBot::InlineQueryResultVoice
Defined in:
telegram_bot/types/inline/inline_query_result_voice.crConstant 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
- .new(id : String, voice_url : String, title : String, voice_duration : Int32 | Nil = nil, reply_markup : InlineKeyboardMarkup | Nil = nil, input_message_content : InputMessageContent | Nil = nil)
- .new(__temp_484 : JSON::PullParser)
Instance Method Summary
- #id : String
- #id=(_id : String)
- #input_message_content : InputMessageContent | Nil
- #input_message_content=(_input_message_content : InputMessageContent | Nil)
- #reply_markup : InlineKeyboardMarkup | Nil
- #reply_markup=(_reply_markup : InlineKeyboardMarkup | Nil)
- #title : String
- #title=(_title : String)
- #to_json(json : JSON::Builder)
- #type : String
- #type=(_type : String)
- #voice_duration : Int32 | Nil
- #voice_duration=(_voice_duration : Int32 | Nil)
- #voice_url : String
- #voice_url=(_voice_url : String)
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)
#