The command exited with code 0.
Output:
1699- serviceType: serviceType, // 'RETRIEVE_SMS' or 'DOWNLOAD_PDF'
1700- transactionId: '',
1701- mobile: '',
1702- name: '',
1703- dob: null,
1704: captchaValue: '',
1705- otpTxnId: '',
1706- eidNumber: '',
1707- retrievedName: '',
1708- pdfPhase: false,
1709- reqId: crypto.randomUUID()
--
1723- const loaderMsg = await ctx.reply('⏳ Loading... Please wait.', { parse_mode: 'HTML' });
1724- sessions[userId].startLoaderId = loaderMsg.message_id;
1725-
1726- try {
1727- // Just verify API connectivity through backend
1728: const pingRes = await callApi('/captcha', { method: 'GET' });
1729-
1730- // Delete the start loader immediately once done
1731- if (sessions[userId].startLoaderId) {
1732- ctx.telegram.deleteMessage(userId, sessions[userId].startLoaderId).catch(() => { });
1733- }
--
3660-});
3661-
3662-// Manual Captcha Fetch
3663-async function fetchManualCaptcha(ctx, session) {
3664- try {
3665: const captchaResponse = await callApi('/captcha', { method: 'GET' });
3666-
3667: if (!captchaResponse.ok) {
3668- ctx.reply(`❌ *Could not load verification image. Please try again.*`, { parse_mode: 'Markdown' });
3669- return;
3670- }
3671-
3672: const data = await captchaResponse.json();
3673: session.transactionId = data.captchaTxnId;
3674: const imageBuffer = Buffer.from(data.captchaBase64, 'base64');
3675-