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