Update rpg.js
Исправлена ошибка при создании и редактировании постов в канале
This commit is contained in:
parent
68317027c3
commit
fb757f9f0a
3
rpg.js
3
rpg.js
@ -30,7 +30,8 @@ const {
|
|||||||
const rpg = new Composer();
|
const rpg = new Composer();
|
||||||
|
|
||||||
rpg.use(async (ctx, next) => {
|
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;
|
let username = ctx.from.username;
|
||||||
if (username == null) username = ctx.from.id;
|
if (username == null) username = ctx.from.id;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user