First build
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import type { Context } from '#root/bot/context.js'
|
||||
import type { Context } from "#root/bot/context.js";
|
||||
|
||||
export function isAdmin(ctx: Context) {
|
||||
return !!ctx.from && ctx.config.botAdmins.includes(ctx.from.id)
|
||||
return !!ctx.from && ctx.config.botAdmins.includes(ctx.from.id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user