Skip to main content

Module string_command

Module string_command 

Source
Expand description

StringCommandHandler – handles /command strings extracted from message text.

Adapted from python-telegram-bot’s StringCommandHandler. The Python version operates on raw strings put into the queue, not Telegram updates. Per the design decision, this Rust version operates on Update objects, extracting message text and checking for /command syntax.

Structs§

StringCommandHandler
Handler that matches messages whose text starts with /command.