class Tourmaline::InputTextMessageContent
- Tourmaline::InputTextMessageContent
- Reference
- Object
Overview
Represents the content of a text message to be sent as the result of an inline query.
Included Modules
- JSON::Serializable
Defined in:
tourmaline/types/api.crConstructors
- .new(pull : JSON::PullParser)
- .new(message_text : String, parse_mode : ParseMode = ParseMode::Markdown, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, link_preview_options : Tourmaline::LinkPreviewOptions | Nil = nil)
Instance Method Summary
-
#entities : Array(Tourmaline::MessageEntity)
Optional.
-
#entities=(entities : Array(Tourmaline::MessageEntity))
Optional.
-
#link_preview_options : Tourmaline::LinkPreviewOptions | Nil
Optional.
-
#link_preview_options=(link_preview_options : Tourmaline::LinkPreviewOptions | Nil)
Optional.
-
#message_text : String
Text of the message to be sent, 1-4096 characters
-
#message_text=(message_text : String)
Text of the message to be sent, 1-4096 characters
-
#parse_mode : ParseMode
Optional.
-
#parse_mode=(parse_mode : ParseMode)
Optional.
Constructor Detail
Instance Method Detail
Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
Optional. Link preview generation options for the message
Optional. Link preview generation options for the message
Optional. Mode for parsing entities in the message text. See formatting options for more details.
Optional. Mode for parsing entities in the message text. See formatting options for more details.