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]
@@ -3446,10 +3446,14 @@
const session = sessions[userId];
if (!session) return;
ctx.answerCbQuery().catch(() => { });
- ctx.deleteMessage().catch(() => { });
session.name = 'Mr';
- session.step = 'SOLVING_CAPTCHA';
- await autoSolveAndRequestOtp(ctx, session, 1);
+ ctx.editMessageText('📅 Select DOB Verification:', {
+ parse_mode: 'HTML',
+ ...Markup.inlineKeyboard([
+ [{ text: 'DOB', callback_data: 'CHOOSE_WITH_DOB', style: 'primary' }],
+ [{ text: 'No DOB', callback_data: 'CHOOSE_WITHOUT_DOB', style: 'primary' }]
+ ])
+ });
});
bot.action('CHOOSE_WITH_NAME_EID', async (ctx) => {
@@ -3465,10 +3465,14 @@
const session = sessions[userId];
if (!session) return;
ctx.answerCbQuery().catch(() => { });
- ctx.deleteMessage().catch(() => { });
session.retrievedName = '';
- session.step = 'SOLVING_CAPTCHA';
- await autoSolveAndRequestOtp(ctx, session, 1);
+ ctx.editMessageText('📅 Select DOB Verification:', {
+ parse_mode: 'HTML',
+ ...Markup.inlineKeyboard([
+ [{ text: 'DOB', callback_data: 'CHOOSE_WITH_DOB_EID', style: 'primary' }],
+ [{ text: 'No DOB', callback_data: 'CHOOSE_WITHOUT_DOB_EID', style: 'primary' }]
+ ])
+ });
});
bot.action('CHOOSE_WITH_DOB_EID', async (ctx) => {
@@ -3486,8 +3486,9 @@
ctx.answerCbQuery().catch(() => { });
ctx.deleteMessage().catch(() => { });
session.dob = null;
- session.step = 'SOLVING_CAPTCHA';
- await autoSolveAndRequestOtp(ctx, session, 1);
+ session.step = 'SOLVING_CAPTCHA_PDF';
+ const ldr = await ctx.reply('⏳ Loading... Please wait.', { parse_mode: 'HTML' });
+ await autoSolveAndRequestOtp(ctx, session, 1, ldr.message_id);
});
bot.action('CONTINUE_PDF', async (ctx) => {
[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.