forked from TBXark/ChatGPT-Telegram-Workers
-
Notifications
You must be signed in to change notification settings - Fork 3
/
dicten.json
19 lines (19 loc) · 783 Bytes
/
dicten.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{
"url": "https://api.dictionaryapi.dev/api/v2/entries/en/{{DATA}}",
"method": "GET",
"input": {
"required": true
},
"response": {
"content": {
"input_type": "json",
"output_type": "html",
"output": "{{#each word in .}}\n<b>{{word.word}}</b>{{#if word.phonetic}}<i>{{word.phonetic}}</i>{{/if}}\n{{#each:word meanings in word.meanings}}\n <b>+ {{meanings.partOfSpeech}}</b>\n {{#each:meanings definitions in meanings.definitions}}\n <i>{{definitions.definition}}</i>\n {{/each:meanings}}\n{{/each:word}}\n{{/each}}\n"
},
"error": {
"input_type": "json",
"output_type": "text",
"output": "Error: {{message}}"
}
}
}