feat(dispatcher): filter for scheduled messages

This commit is contained in:
alina 🌸 2024-05-06 03:41:02 +03:00
parent 47e1cde585
commit 82b1552468
Signed by: teidesu
SSH key fingerprint: SHA256:uNeCpw6aTSU4aIObXLvHfLkDa82HWH9EiOj9AXOIRpI

View file

@ -36,6 +36,11 @@ export const incoming: UpdateFilter<Message, { isOutgoing: false }> = (msg) => !
*/ */
export const outgoing: UpdateFilter<Message, { isOutgoing: true }> = (msg) => msg.isOutgoing export const outgoing: UpdateFilter<Message, { isOutgoing: true }> = (msg) => msg.isOutgoing
/**
* Filter for scheduled messages
*/
export const scheduled: UpdateFilter<Message, { isScheduled: true }> = (msg) => msg.isScheduled
/** /**
* Filter messages that are replies to some other message * Filter messages that are replies to some other message
*/ */