mirror of
https://github.com/thedevs-network/the-guard-bot
synced 2025-08-30 13:47:54 +00:00
refactor: undefiend check
Co-authored-by: Wojciech Pawlik <woj.pawlik@gmail.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user