fix: add timeout to request
* incase the ussd-server is down or unresponsive, return a message to tg
This commit is contained in:
parent
05e441f6a1
commit
f61500f3e6
@ -8,6 +8,7 @@ async function proxy(sessionId, phone, input = "") {
|
|||||||
url: config.get("USSD_ENDPOINT"),
|
url: config.get("USSD_ENDPOINT"),
|
||||||
method: "POST",
|
method: "POST",
|
||||||
parse: "string",
|
parse: "string",
|
||||||
|
timeout: 3000,
|
||||||
form: {
|
form: {
|
||||||
sessionId: sessionId,
|
sessionId: sessionId,
|
||||||
phoneNumber: phone,
|
phoneNumber: phone,
|
||||||
|
Loading…
Reference in New Issue
Block a user