class
Hamilton::Types::InlineQueryResultVoice
- Hamilton::Types::InlineQueryResultVoice
- Reference
- Object
Overview
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.
Included Modules
- Hamilton::Types::Common
- JSON::Serializable
Defined in:
types/inline_query_result.crConstructors
- .new(pull : JSON::PullParser)
- .new(params)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
- .new(**params)
Instance Method Summary
-
#caption : String | Nil
Caption, 0-1024 characters after entities parsing.
-
#caption=(caption : String | Nil)
Caption, 0-1024 characters after entities parsing.
-
#caption_entities : Array(Hamilton::Types::MessageEntity) | Nil
List of special entities that appear in the caption, which can be specified instead of parse_mode.
-
#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.
-
#id : String
Unique identifier for this result, 1-64 Bytes.
-
#id=(id : String)
Unique identifier for this result, 1-64 Bytes.
-
#input_message_content : Hamilton::Types::InputMessageContent | Nil
Content of the message to be sent instead of the voice recording.
-
#input_message_content=(input_message_content : Hamilton::Types::InputMessageContent | Nil)
Content of the message to be sent instead of the voice recording.
-
#non_nil_fields : Array(String)
List of available non-nil fields.
-
#non_nil_fields=(non_nil_fields : Array(String))
List of available non-nil fields.
-
#parse_mode : String | Nil
Mode for parsing entities in the voice message caption.
-
#parse_mode=(parse_mode : String | Nil)
Mode for parsing entities in the voice message caption.
-
#reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil
Inline keyboard attached to the message.
-
#reply_markup=(reply_markup : Hamilton::Types::InlineKeyboardMarkup | Nil)
Inline keyboard attached to the message.
-
#title : String
Recording title.
-
#title=(title : String)
Recording title.
-
#type : String
Type of the result, must be "voice".
-
#type=(type : String)
Type of the result, must be "voice".
-
#voice_duration : Int32 | Nil
Recording duration in seconds.
-
#voice_duration=(voice_duration : Int32 | Nil)
Recording duration in seconds.
-
#voice_url : String
A valid URL for the voice recording.
-
#voice_url=(voice_url : String)
A valid URL for the voice recording.
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
List of special entities that appear in the caption, which can be specified instead of parse_mode.
List of special entities that appear in the caption, which can be specified instead of parse_mode.
Content of the message to be sent instead of the voice recording.
Content of the message to be sent instead of the voice recording.
Mode for parsing entities in the voice message caption. See formatting options for more details.
Mode for parsing entities in the voice message caption. See formatting options for more details.
Inline keyboard attached to the message.
Inline keyboard attached to the message.