typings/lib2/messagev2/messagePayload/postbackMessage.js

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.PostbackMessage = void 0;
const internal_1 = require("../internal");
/**
 * Represents a postback message.
 * @extends NonRawMessage
 */
class PostbackMessage extends internal_1.NonRawMessage {
    /**
     * Creates a new instance of PostbackMessage.
     */
    constructor() {
        super();
        this.type = 'postback';
    }
    /**
     * Gets the postback.
     * @returns The postback.
     */
    getPostback() {
        return this.postback;
    }
}
exports.PostbackMessage = PostbackMessage;