From d551a56403c7e29199b8bc4c425229cf0715b06e Mon Sep 17 00:00:00 2001 From: cheetah Date: Thu, 1 Dec 2022 14:21:34 +0100 Subject: [PATCH] fixed url call --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ed794d7..8dd71a0 100644 --- a/index.js +++ b/index.js @@ -63,9 +63,9 @@ for (let deliveryModeIndex in config.deliveryModes) { await ctx.editMessageReplyMarkup(undefined) const deliveryModeData = config.deliveryModes[ deliveryModeIndex ] - + let msgId = ( - await axios.post(config.pager.url, Object.assign( !!deliveryModeData.preset + await axios.post(new URL(config.pager.url).origin + '/api/message/' + (!!deliveryModeData.preset ? 'preset' : 'advanced'), Object.assign( !!deliveryModeData.preset ? { ...deliveryModeData.params } // backward compatibility : { preset: deliveryModeData.preset } , { payload: origText }))