mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2026-01-07 04:14:51 +00:00
Update misc_tools.py
This commit is contained in:
parent
1bd2561aee
commit
e7919b71ab
1 changed files with 1 additions and 1 deletions
|
|
@ -135,7 +135,7 @@ async def translate(client, message):
|
||||||
'text': text
|
'text': text
|
||||||
}
|
}
|
||||||
try:
|
try:
|
||||||
tekstr = (await http.post("https://deep-translator-api.azurewebsites.net/google/", json=json_dara)).json()["translation"]
|
tekstr = (await http.post("https://deep-translator-api.azurewebsites.net/google/", json=json_data)).json()["translation"]
|
||||||
await msg.edit(f"<code>{tekstr}</code>")
|
await msg.edit(f"<code>{tekstr}</code>")
|
||||||
except MessageTooLong:
|
except MessageTooLong:
|
||||||
url = await rentry(tekstr)
|
url = await rentry(tekstr)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue