mirror of
https://github.com/yasirarism/MissKatyPyro.git
synced 2025-12-29 09:44:50 +00:00
Typo
This commit is contained in:
parent
f6a7fd61ce
commit
cd5ab46fb8
1 changed files with 6 additions and 6 deletions
|
|
@ -52,15 +52,15 @@ async def autopay(request: Request):
|
||||||
return JSONResponse({"status": false, "data": "Data not found on DB"}, 404)
|
return JSONResponse({"status": false, "data": "Data not found on DB"}, 404)
|
||||||
if status == "Success":
|
if status == "Success":
|
||||||
with suppress(Exception):
|
with suppress(Exception):
|
||||||
await bot.send_message(r.get("user_id"), f"{msg}\n\nJika ada pertanyaan silahkan hubungi pemilik bot ini.")
|
await app.send_message(r.get("user_id"), f"{msg}\n\nJika ada pertanyaan silahkan hubungi pemilik bot ini.")
|
||||||
await bot.delete_messages(r.get("user_id"), r.get("msg_id"))
|
await app.delete_messages(r.get("user_id"), r.get("msg_id"))
|
||||||
await bot.send_message(OWNER_ID, msg)
|
await app.send_message(OWNER_ID, msg)
|
||||||
await delete_autopay(unique_code)
|
await delete_autopay(unique_code)
|
||||||
return JSONResponse({"status": status, "msg": "Pesanan berhasil dibayar oleh customer."}, 200)
|
return JSONResponse({"status": status, "msg": "Pesanan berhasil dibayar oleh customer."}, 200)
|
||||||
else:
|
else:
|
||||||
with suppress(Exception):
|
with suppress(Exception):
|
||||||
await bot.send_message(r.get("user_id"), "QRIS Telah Expired, Silahkan Buat Transaksi Baru.")
|
await app.send_message(r.get("user_id"), "QRIS Telah Expired, Silahkan Buat Transaksi Baru.")
|
||||||
await bot.delete_messages(r.get("user_id"), r.get("msg_id"))
|
await app.delete_messages(r.get("user_id"), r.get("msg_id"))
|
||||||
await delete_autopay(unique_code)
|
await delete_autopay(unique_code)
|
||||||
return JSONResponse({"status": status, "msg": "Pesanan telah dibatalkan/gagal dibayar."}, 403)
|
return JSONResponse({"status": status, "msg": "Pesanan telah dibatalkan/gagal dibayar."}, 403)
|
||||||
|
|
||||||
|
|
@ -95,4 +95,4 @@ async def homepage():
|
||||||
|
|
||||||
@api.exception_handler(HTTPException)
|
@api.exception_handler(HTTPException)
|
||||||
async def page_not_found(request: Request, exc: HTTPException):
|
async def page_not_found(request: Request, exc: HTTPException):
|
||||||
return HTMLResponse(content=f"<h1>Error: {exc}</h1>", status_code=exc.status_code)
|
return HTMLResponse(content=f"<h1>Error: {exc}</h1>", status_code=exc.status_code)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue