diff --git a/handlers/middlewares/removeChannelForwards.js b/handlers/middlewares/removeChannelForwards.js index 26dabbe..2e31922 100644 --- a/handlers/middlewares/removeChannelForwards.js +++ b/handlers/middlewares/removeChannelForwards.js @@ -19,7 +19,7 @@ const isChannelForward = R.pathEq( ); const fromAdmin = R.pathEq([ 'from', 'status' ], 'admin'); -const inGroup = ctx => ctx.chat?.type?.endsWith('group'); +const inGroup = ctx => ctx.chat?.type.endsWith('group'); const capturingGroups = R.tail;