2
0
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:
Pouria Ezzati
2021-04-23 19:49:06 +04:30
committed by GitHub
parent d48772ef32
commit cc0c1e6bb4

View File

@@ -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;