This template provides a basic setup for using Aiogram version 3 with webhooks via FastAPI.
- Aiogram version 3
- FastAPI integration for webhooks
- Asynchronous handling of incoming updates
- Basic example commands and handlers
- Python 3.11 and higher
- Aiogram library
- FastAPI library
-
Clone the repository:
git clone https://github.com/yourusername/aiogram-webhook-template.git
-
Change into the project directory:
cd aiogram-webhook-template
-
Install the required dependencies:
pip install -r requirements.txt
-
Rename the
.env.example
file to.env
:cp .env.example .env
-
Open the
.env
file and provide your Bot API token and other necessary configurations.
- Start bot
python ./main.py
Now, your Aiogram bot is configured to use webhooks via FastAPI. You can extend the provided example commands and handlers for your specific use case.
Feel free to contribute to the project by opening issues or creating pull requests. Your feedback and collaboration are highly appreciated!
This project is licensed under the MIT License - see the LICENSE file for details.