class Tourmaline::InputTextMessageContent
inherits Reference
#
Represents the content of a text message to be sent as the result of an inline query.
Included modules
JSON::Serializable
Constructors#
.new(message_text, parse_mode : ParseMode = ParseMode::Markdown, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, link_preview_options : Tourmaline::LinkPreviewOptions? = nil)
#
(message_text, parse_mode : ParseMode = ParseMode::Markdown, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, link_preview_options : Tourmaline::LinkPreviewOptions? = nil)
Methods#
#entities : Array(Tourmaline::MessageEntity)
#
: Array(Tourmaline::MessageEntity)
Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
#entities=(entities : Array(Tourmaline::MessageEntity))
#
(entities : Array(Tourmaline::MessageEntity))
Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
#link_preview_options : Tourmaline::LinkPreviewOptions?
#
: Tourmaline::LinkPreviewOptions?
Optional. Link preview generation options for the message
#link_preview_options=(link_preview_options : Tourmaline::LinkPreviewOptions?)
#
(link_preview_options : Tourmaline::LinkPreviewOptions?)
Optional. Link preview generation options for the message
#message_text=(message_text : String)
#
(message_text : String)
Text of the message to be sent, 1-4096 characters
#parse_mode : ParseMode
#
: ParseMode
Optional. Mode for parsing entities in the message text. See formatting options for more details.
#parse_mode=(parse_mode : ParseMode)
#
(parse_mode : ParseMode)
Optional. Mode for parsing entities in the message text. See formatting options for more details.