fixed url call

master
cheetah 2 years ago
parent fc9c6d4da2
commit d551a56403

@ -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 }))

Loading…
Cancel
Save