Update /caption mesId argument name
| @@ -358,10 +358,10 @@ function onRefineModeInput() { | ||
| 358 | 358 | */ |
| 359 | 359 | async function captionCommandCallback(args, prompt) { |
| 360 | 360 | const quiet = isTrueBoolean(args?.quiet); |
| 361 | 361 | const idmesId = args?.mesId ?? args?.id; |
| 362 | 362 | |
| 363 | 363 | if (!isNaN(Number(idmesId))) { |
| 364 | 364 | const message = getContext().chat[idmesId]; |
| 365 | 365 | if (message?.extra?.image) { |
| 366 | 366 | try { |
| 367 | 367 | const fetchResult = await fetch(message.extra.image); |
| @@ -546,7 +546,7 @@ jQuery(async function () { | ||
| 546 | 546 | 'quiet', 'suppress sending a captioned message', [ARGUMENT_TYPE.BOOLEAN], false, false, 'false', |
| 547 | 547 | ), |
| 548 | 548 | SlashCommandNamedArgument.fromProps({ |
| 549 | 549 | name: 'idmesId', |
| 550 | 550 | description: 'get image from a message with this ID', |
| 551 | 551 | typeList: [ARGUMENT_TYPE.NUMBER], |
| 552 | 552 | enumProvider: commonEnumProviders.messages(), |