// Telegrammer - Telegram Bot Swift SDK.
// This file is autogenerated by API/generate_wrappers.rb script.

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

 SeeAlso Telegram Bot API Reference:
 [InputTextMessageContent](https://core.telegram.org/bots/api#inputtextmessagecontent)
 */
public final class InputTextMessageContent: Codable {

    /// Custom keys for coding/decoding `InputTextMessageContent` struct
    enum CodingKeys: String, CodingKey {
        case messageText = "message_text"
        case parseMode = "parse_mode"
        case entities = "entities"
        case disableWebPagePreview = "disable_web_page_preview"
    }

    /// Text of the message to be sent, 1-4096 characters
    public var messageText: String

    /// Optional. Mode for parsing entities in the message text. See formatting options for more details.
    public var parseMode: String?

    /// Optional. List of special entities that appear in message text, which can be specified instead of parse_mode
    public var entities: [MessageEntity]?

    /// Optional. Disables link previews for links in the sent message
    public var disableWebPagePreview: Bool?

    public init (messageText: String, parseMode: String? = nil, entities: [MessageEntity]? = nil, disableWebPagePreview: Bool? = nil) {
        self.messageText = messageText
        self.parseMode = parseMode
        self.entities = entities
        self.disableWebPagePreview = disableWebPagePreview
    }
}
