This is an example from README.md. It runs a bot with a simple command /task.
To run the example:
- Install requirements, using command
pip install -r example/requirements.txt; - Replace
TOKENin__main__.pywith your actual token; - Start taskiq workers, by running
taskiq worker example.tkq:broker --fs-discover; - Start the bot, by running
python example.