fixed url call
This commit is contained in:
parent
fc9c6d4da2
commit
d551a56403
1 changed files with 2 additions and 2 deletions
4
index.js
4
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 }))
|
||||
|
|
Loading…
Add table
Reference in a new issue