The following changes were made by the replace_file_content tool to: /root/aadharbot/index.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission. [diff_block_start] @@ -1778,37 +1778,16 @@ ctx.editMessageText(`✨ **Selected Service:** \`${serviceName}\``, { parse_mode: 'Markdown' }); } - // Send a temporary loader message that will get deleted automatically - const loaderMsg = await ctx.reply('⏳ Loading... Please wait.', { parse_mode: 'HTML' }); - sessions[userId].startLoaderId = loaderMsg.message_id; - - try { - // Just verify API connectivity through backend - const pingRes = await callApi('/captcha', { method: 'GET' }); - - // Delete the start loader immediately once done - if (sessions[userId].startLoaderId) { - ctx.telegram.deleteMessage(userId, sessions[userId].startLoaderId).catch(() => { }); - } - - if (directMobile) { - await handleMobileSubmit(ctx, sessions[userId], directMobile); - } else { - if (serviceType === 'EID_TO_PDF') { - ctx.reply('📑 *Please enter the 14-digit Enrolment ID (EID):*', { parse_mode: 'Markdown' }); - sessions[userId].step = 'WAITING_FOR_EID'; - } else { - ctx.reply('📱 *Please enter your 10-digit registered Mobile Number:*', { parse_mode: 'Markdown' }); - sessions[userId].step = 'WAITING_FOR_MOBILE'; - } - } - - } catch (error) { - console.error(error); - if (sessions[userId].startLoaderId) { - ctx.telegram.deleteMessage(userId, sessions[userId].startLoaderId).catch(() => { }); - } - ctx.reply('❌ *A temporary connection error occurred. Please try again.*', { parse_mode: 'Markdown' }); + if (directMobile) { + await handleMobileSubmit(ctx, sessions[userId], directMobile); + } else { + if (serviceType === 'EID_TO_PDF') { + await ctx.reply('📑 *Please enter the 14-digit Enrolment ID (EID):*', { parse_mode: 'Markdown' }); + sessions[userId].step = 'WAITING_FOR_EID'; + } else { + await ctx.reply('📱 *Please enter your 10-digit registered Mobile Number:*', { parse_mode: 'Markdown' }); + sessions[userId].step = 'WAITING_FOR_MOBILE'; + } } } [diff_block_end] Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.