KOW-6 add addl /httpcat validation
This commit is contained in:
parent
7083f0a10c
commit
2d0afae703
1 changed files with 7 additions and 0 deletions
|
@ -60,6 +60,13 @@ export default (bot: Telegraf<Context>) => {
|
|||
if (verifyInput(ctx, userInput, invalidCode, true)) {
|
||||
return;
|
||||
}
|
||||
if (userInput.length !== 3) {
|
||||
ctx.reply(Strings.httpCodes.invalidCode, {
|
||||
parse_mode: 'Markdown',
|
||||
...({ reply_to_message_id })
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
const apiUrl = `${Resources.httpCatApi}${userInput}`;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue