Skip to content

Commit

Permalink
fix: answer menu close callbacks first so the client knows it has bee…
Browse files Browse the repository at this point in the history
…n handled

Signed-off-by: Eiko Wagenknecht <[email protected]>
  • Loading branch information
eikowagenknecht committed Feb 11, 2025
1 parent 40e8cc3 commit c3047eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/services/telegrambot/handlers/callbacks/close.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export async function handleCloseCallback(
"Thank you for choosing your timezone. " +
"If you live in a place with daylight saving time, please remember to do this " +
"again at the appropriate time of year.";
await ctx.editMessageText(message);
await ctx.answerCallbackQuery();
await ctx.editMessageText(message);
return;
}

Expand All @@ -32,6 +32,7 @@ export async function handleCloseCallback(
"Thank you for managing your subscriptions. " +
"Forgot something? " +
"You can continue any time with /manage.";
await ctx.answerCallbackQuery();
await ctx.editMessageText(message);
await refreshOffersForChat(ctx);
}

0 comments on commit c3047eb

Please sign in to comment.