import { NextFunction } from 'grammy' ; import Context from '@/models/Context' ; export default function checkFilesBanned ( ctx , next ) { if ( ctx . dbchat . filesBanned ) { return ; } return next ( ) ; }