import { ContextMessageUpdate } from 'telegraf' ; const asyncHandler = ( fn ) => ( ctx , next ) => fn ( ctx , next ) . catch ( ( ) => ctx . reply ( '❌ An error occurred.' ) ) ; export default asyncHandler ;