Update rpg.js

Исправлена ошибка при создании и редактировании постов в канале
This commit is contained in:
Degradin 2025-01-11 21:33:37 +03:00
parent 68317027c3
commit fb757f9f0a

3
rpg.js
View File

@ -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;