UNPKG

@softvisio/core

Version:
35 lines (26 loc) 562 B
import Media from "./media.js"; const TYPE = "voice", SEND_METHOD = "sendVoice"; export default class extends Media { #contentType; constructor ( id, { fileId, contentType } = {} ) { super( id, fileId ); this.#contentType = contentType; } // properties get type () { return TYPE; } get sendMethod () { return SEND_METHOD; } // protected _getJson () { return { "contentType": this.#contentType, }; } _toMessage () { return {}; } }