Skip to content

Commit

Permalink
Merge pull request #18 from adidoesnt/development
Browse files Browse the repository at this point in the history
remove temp id array flattening from bot end
  • Loading branch information
wish2023 authored Feb 7, 2024
2 parents 6d3b7bd + 9d5c961 commit 97691a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions telegram-bot/src/components/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 97691a4

Please sign in to comment.