Outline a brief description of your project.
###Отдельно для хендлера
- utils.antiflood import rate_limit
- @rate_limit(
seconds
,command
)seconds
is required ###Для всех хендлеров
- middlewares/antiflood... > 2 (2 is seconds)
- sudo lsof -i :5432
- kill -id-
root_path = config.tg_bot.root_path
path_to_download = path.joinpath("tgbot", "pictures", "instruction.png") # preview
with open(path_to_download, 'rb') as photo:
await callback.bot.send_photo(callback.message.chat.id, photo)
1)my-project/db/alembic $ alembic revision --autogenerate -m "first migrate"
2)my-project/db/alembic $ alembic upgrade head
- настроить .env
- запустить бд в докере
- $ngrok http 3001
- $python main.py
How does one go about using it? Provide various use cases and code examples here.
write-your-code-here
Project is: in progress / complete / no longer being worked on. If you are no longer working on it, provide reasons why.
Include areas you believe need improvement / could be improved. Also add TODOs for future development.
Room for improvement:
- Improvement to be done 1
- Improvement to be done 2
To do:
- Feature to be added 1
- Feature to be added 2
Give credit here.
- This project was inspired by...
- This project was based on this tutorial.
- Many thanks to...
Created by @flynerdpl - feel free to contact me!