Skip to content

Commit

Permalink
reply_parameter for the confirm message
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukaizen committed Mar 11, 2024
1 parent 150ddb0 commit ff69880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/warns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ bot.chatType("supergroup" || "group").command("resetallwarns", ownerOnly(canRest
.text("Yes", "yes-reset")
.text("No", "no-reset")

await ctx.api.sendMessage(ctx.chat.id, "Are you sure you want to reset <b>everyone's</b> warnings in this chat?\n\n<i>This action cannot be undone.</i>", {reply_markup: confirmReset, parse_mode: "HTML"});
await ctx.api.sendMessage(ctx.chat.id, "Are you sure you want to reset <b>everyone's</b> warnings in this chat?\n\n<i>This action cannot be undone.</i>", {reply_markup: confirmReset, reply_parameters: {message_id: ctx.message.message_id}, parse_mode: "HTML"});
})));

bot.callbackQuery("yes-reset", ownerOnlyCallback(async(ctx: any) => {
Expand Down

0 comments on commit ff69880

Please sign in to comment.