class Tourmaline::InputTextMessageContent

Overview

Represents the content of a text message to be sent as the result of an inline query.

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(message_text : String, parse_mode : ParseMode = ParseMode::Markdown, entities : Array(Tourmaline::MessageEntity) = [] of Tourmaline::MessageEntity, link_preview_options : Tourmaline::LinkPreviewOptions | Nil = nil) #

[View source]

Instance Method Detail

def entities : Array(Tourmaline::MessageEntity) #

Optional. List of special entities that appear in message text, which can be specified instead of parse_mode


[View source]
def entities=(entities : Array(Tourmaline::MessageEntity)) #

Optional. List of special entities that appear in message text, which can be specified instead of parse_mode


[View source]
def link_preview_options : Tourmaline::LinkPreviewOptions | Nil #

Optional. Link preview generation options for the message


[View source]
def link_preview_options=(link_preview_options : Tourmaline::LinkPreviewOptions | Nil) #

Optional. Link preview generation options for the message


[View source]
def message_text : String #

Text of the message to be sent, 1-4096 characters


[View source]
def message_text=(message_text : String) #

Text of the message to be sent, 1-4096 characters


[View source]
def parse_mode : ParseMode #

Optional. Mode for parsing entities in the message text. See formatting options for more details.


[View source]
def parse_mode=(parse_mode : ParseMode) #

Optional. Mode for parsing entities in the message text. See formatting options for more details.


[View source]