class
Hamilton::Types::InlineQueryResultGif
- Hamilton::Types::InlineQueryResultGif
- Reference
- Object
Overview
Represents a link to an animated GIF file. By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can use #input_message_content to send a message with the specified content instead of the animation.
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 of the GIF file to be sent, 0-1024 characters after entities parsing.
-
#caption=(caption : String | Nil)
Caption of the GIF file to be sent, 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. -
#gif_duration : Int32 | Nil
Duration of the GIF in seconds.
-
#gif_duration=(gif_duration : Int32 | Nil)
Duration of the GIF in seconds.
-
#gif_height : Int32 | Nil
Height of the GIF.
-
#gif_height=(gif_height : Int32 | Nil)
Height of the GIF.
-
#gif_url : String
A valid URL for the GIF file.
-
#gif_url=(gif_url : String)
A valid URL for the GIF file.
-
#gif_width : Int32 | Nil
Width of the GIF.
-
#gif_width=(gif_width : Int32 | Nil)
Width of the GIF.
-
#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
Content of the message to be sent instead of the GIF animation.
-
#input_message_content=(input_message_content : Hamilton::Types::InputMessageContent)
Content of the message to be sent instead of the GIF animation.
-
#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 caption.
-
#parse_mode=(parse_mode : String | Nil)
Mode for parsing entities in the 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.
-
#show_caption_above_media : Bool | Nil
Pass True, if the caption must be shown above the message media.
-
#show_caption_above_media=(show_caption_above_media : Bool | Nil)
Pass True, if the caption must be shown above the message media.
-
#thumbnail_mime_type : String | Nil
MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”.
-
#thumbnail_mime_type=(thumbnail_mime_type : String | Nil)
MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”.
-
#thumbnail_url : String
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
-
#thumbnail_url=(thumbnail_url : String)
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
-
#title : String | Nil
Title for the result.
-
#title=(title : String | Nil)
Title for the result.
-
#type : String
Type of the result, must be "gif".
-
#type=(type : String)
Type of the result, must be "gif".
Instance methods inherited from class Reference
==(other : Hamilton::Any)
==
Instance methods inherited from class Object
===(other : Hamilton::Any)
===
Constructor Detail
Instance Method Detail
Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
Caption of the GIF file to be sent, 0-1024 characters after entities parsing.
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 GIF animation.
Content of the message to be sent instead of the GIF animation.
Mode for parsing entities in the caption. See formatting options for more details.
Mode for parsing entities in the caption. See formatting options for more details.
Inline keyboard attached to the message.
Inline keyboard attached to the message.
Pass True, if the caption must be shown above the message media.
Pass True, if the caption must be shown above the message media.
MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”.
MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. Defaults to “image/jpeg”.
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.