Skip to main content

filter_mention_command

Function filter_mention_command 

Source
pub fn filter_mention_command<C, Output>() -> Handler<'static, Output, DpHandlerDescription>
where C: BotCommands + Send + Sync + 'static, Output: Send + Sync + 'static,
Expand description

Returns a handler that accepts a parsed command C if the command contains a bot mention, for example /start@my_bot.

A call to this function is the same as dptree::entry().filter_mention_command().

See HandlerExt::filter_mention_command.

ยงDependency requirements