Expand description
Composable update filters.
Modules§
- filters
- Convenience constructors for all built-in filters.
Structs§
- And
- Combines two filters with logical AND: passes only if both filters pass.
- Callback
Data Filter - Passes when the callback query data exactly equals
data. - Callback
Data Prefix Filter - Passes when the callback query data starts with
prefix. - Callback
Query Filter - Passes only for
CallbackQueryupdates. Passes only forCallbackQueryupdates. - Command
Filter - Passes when the message is a bot command matching
command. - Edited
Message Filter - Passes only for
EditedMessageupdates. Passes only forEditedMessageupdates. - FnFilter
- Wraps a plain function or closure as a
Filter. - Group
Filter - Passes only for messages in group and supergroup chats.
- Inline
Query Filter - Passes only for
InlineQueryupdates. Passes only forInlineQueryupdates. - Message
Filter - Passes only for
Messageupdates. - Not
- Inverts a filter: passes when the inner filter fails, and vice versa.
- Or
- Combines two filters with logical OR: passes if either filter (or both) pass.
- Private
Chat Filter - Passes only for messages in private chats.
- Text
Contains Filter - Passes when the message text contains
needleas a substring. - Text
Filter - Passes when the message text exactly equals
text.
Traits§
- Filter
- A predicate evaluated against an incoming
Context. - Filter
Ext - Extension methods for composing
Filtervalues.