From fb757f9f0ac476852d41b2cbeff660f564e118a5 Mon Sep 17 00:00:00 2001 From: Degradin Date: Sat, 11 Jan 2025 21:33:37 +0300 Subject: [PATCH] Update rpg.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Исправлена ошибка при создании и редактировании постов в канале --- rpg.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpg.js b/rpg.js index c1bfb0b..6ff8b17 100644 --- a/rpg.js +++ b/rpg.js @@ -30,7 +30,8 @@ const { const rpg = new Composer(); rpg.use(async (ctx, next) => { - let id = ctx.from.id; + if(ctx.update.edited_channel_post) return console.log(`[RPG] Channel post updated`); + let id = ctx.from.id let username = ctx.from.username; if (username == null) username = ctx.from.id;