mirror of
https://github.com/ReVanced/revanced-bots.git
synced 2026-01-11 13:56:15 +00:00
fix(telegram-bot): not checking for admin properly
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user