From f0e6aaa7e552936a715d9f3e5aa5d9a8b62aa9df Mon Sep 17 00:00:00 2001 From: Keroosha Date: Sat, 25 Feb 2023 00:14:47 +0300 Subject: [PATCH] Message should have text --- PublishHelperBot/Handlers.fs | 1 + 1 file changed, 1 insertion(+) diff --git a/PublishHelperBot/Handlers.fs b/PublishHelperBot/Handlers.fs index a25fc4f..3693555 100644 --- a/PublishHelperBot/Handlers.fs +++ b/PublishHelperBot/Handlers.fs @@ -63,6 +63,7 @@ let public RelayMatch: HandlerRequirements = fun (u, c) -> UpdateIsAMessage u && FromAdminChat <| (u.Message, c) && HasReply u.Message && + HasText u.Message && RelaySupportedContent u.Message.ReplyToMessage && not (RelayCaptionType u.Message.Text = RelayCaptionMode.Unknown)