diff --git a/delta/trigger.ts b/delta/trigger.ts index 571cdeb..704de4c 100644 --- a/delta/trigger.ts +++ b/delta/trigger.ts @@ -6,6 +6,7 @@ const composer = new Composer(); composer.command("off", isReply, async (ctx: Context): Promise => { if (ctx?.message?.reply_to_message?.from?.id === ctx.me.id) { + await ctx.reply(`Ha-ha... yaxshi urinish!`); await ctx.reply(`Ha-ha... yaxshi urinish!`, { parse_mode: "HTML", }); @@ -41,9 +42,7 @@ composer.command("off", isReply, async (ctx: Context): Promise => { composer.command("nometa", isReply, async (ctx: Context): Promise => { if (ctx?.message?.reply_to_message?.from?.id === ctx.me.id) { - await ctx.reply(`Ha-ha... yaxshi urinish!`, { - parse_mode: "HTML", - }); + await ctx.reply(`Ha-ha... yaxshi urinish!`); } else { await ctx.api.deleteMessage( ctx.message!.chat!.id, @@ -77,9 +76,7 @@ composer.command("nometa", isReply, async (ctx: Context): Promise => { composer.command("nonoff", isReply, async (ctx: Context): Promise => { if (ctx?.message?.reply_to_message?.from?.id === ctx.me.id) { - await ctx.reply(`Ha-ha... yaxshi urinish!`, { - parse_mode: "HTML", - }); + await ctx.reply(`Ha-ha... yaxshi urinish!`); } else { await ctx.api.deleteMessage( ctx.message!.chat!.id, @@ -113,9 +110,7 @@ composer.command("nonoff", isReply, async (ctx: Context): Promise => { composer.command("doc", isReply, async (ctx: Context): Promise => { if (ctx?.message?.reply_to_message?.from?.id === ctx.me.id) { - await ctx.reply(`Ha-ha... yaxshi urinish!`, { - parse_mode: "HTML", - }); + await reply(ctx, `Ha-ha... yaxshi urinish!`); } else { const message = `Demak, ${ctx?.message?.reply_to_message?.from?.first_name},` + diff --git a/utils/sender.ts b/utils/sender.ts index bb66700..15c59c3 100644 --- a/utils/sender.ts +++ b/utils/sender.ts @@ -12,7 +12,7 @@ export const reply = async ( ctx: Context, message: string, buttons?: InlineKeyboard, - configs?: { [key: string]: any } + configs?: { [key: string]: any }, ): Promise => { const config: { [key: string]: any } = { parse_mode: "HTML",