diff --git a/bots/telegram/events/telegram/callbackQuery.js b/bots/telegram/events/telegram/callbackQuery.js index e1a7c9a..0564ff1 100644 --- a/bots/telegram/events/telegram/callbackQuery.js +++ b/bots/telegram/events/telegram/callbackQuery.js @@ -4,7 +4,7 @@ export default { async execute(cb) { const admins = await global.bot.getChatAdministrators(cb.message.chat.id); const isAdmin = admins.find( - (admin) => admin.user.id === cb.message.from.id + (admin) => admin.user.id === cb.from.id ); if (!isAdmin)