/**
 * LINE Messaging API
 * This document describes LINE Messaging API.
 *
 * The version of the OpenAPI document: 0.0.1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import { Message } from "./message.js";
import { QuickReply } from "./quickReply.js";
import { Sender } from "./sender.js";
import { SubstitutionObject } from "./substitutionObject.js";

import { MessageBase } from "./models.js";

/**
 * @see <a href="https://developers.line.biz/en/reference/messaging-api/#text-message-v2">https://developers.line.biz/en/reference/messaging-api/#text-message-v2</a>
 */
export type TextMessageV2 = MessageBase & {
  type: "textV2";

  text: string;
  /**
   * A mapping that specifies substitutions for parts enclosed in {} within the `text` field.
   */
  substitution?: { [key: string]: SubstitutionObject };
  /**
   * Quote token of the message you want to quote.
   */
  quoteToken?: string;
};
