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