UNPKG

umbot

Version:

Universal bot(vk, telegram, viber) or skills for Yandex.Alisa, Маруся and sber

23 lines (22 loc) 817 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ViberSound = void 0; const Text_1 = require("../../../utils/standard/Text"); const mmApp_1 = require("../../../mmApp"); const ViberRequest_1 = require("../../../api/ViberRequest"); class ViberSound { async getSounds(sounds, _ = '') { if (sounds) { sounds.forEach((sound) => { if (sound) { if (typeof sound.sounds !== 'undefined' && typeof sound.key !== 'undefined') { const sText = Text_1.Text.getText(sound.sounds); new ViberRequest_1.ViberRequest().sendFile(mmApp_1.mmApp.params.user_id, sText); } } }); } return []; } } exports.ViberSound = ViberSound;