import type { ClientMessage } from "../types"; /** * Text API object * * @group Text */ export default class Text implements ClientMessage { /** * Body of the message. Maximum length: 4096 characters. */ body: string; /** * Whether to enable preview for the text message */ preview_url?: boolean; get _type(): "text"; /** * Create a Text object for the API * * @param body - The content of the text message which can contain formatting and URLs which begin with http:// or https:// * @param preview_url - By default, WhatsApp recognizes URLs and makes them clickable, but you can also include a preview box with more information about the link. Set this field to true if you want to include a URL preview box. * @throws If body is not provided * @throws If body is over 4096 characters */ constructor(body: string, preview_url?: boolean); _build(): string; } //# sourceMappingURL=text.d.ts.map