From 9d5c96124177053fd4dda2fb19ada330c5dd0b18 Mon Sep 17 00:00:00 2001 From: Aditya Banerjee Date: Wed, 7 Feb 2024 23:09:40 +0800 Subject: [PATCH] remove flattening from bot side --- telegram-bot/src/components/bot.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram-bot/src/components/bot.ts b/telegram-bot/src/components/bot.ts index b5c6c7e..0ac08a9 100644 --- a/telegram-bot/src/components/bot.ts +++ b/telegram-bot/src/components/bot.ts @@ -180,10 +180,10 @@ export class Bot { }); const data = response; const { ids: foundMessageIds } = data; - const foundMessageId = foundMessageIds[0]?.shift(); + const foundMessageId = foundMessageIds?.shift(); if (foundMessageId) { const inlineKeyboardMarkup = - this.getInlineKeyboard(foundMessageIds[0]); + this.getInlineKeyboard(foundMessageIds); await this.sendMessage(chatId, MESSAGE.FOUND, { reply_to_message_id: foundMessageId, reply_markup: {