Message should have text

This commit is contained in:
Keroosha 2023-02-25 00:14:47 +03:00
parent 2d66b2fd7a
commit f0e6aaa7e5

View File

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