Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/quvonchbekbobojonov/aiogram-webhook-template
Aiogram version 3 web hook template via FastAPI
https://github.com/quvonchbekbobojonov/aiogram-webhook-template
aiogram aiogram-bot-template aiogram-template aiogram-webhooks aiogram3 aiogram3-template aiogram3-webhooks fastapi python-telegram-bot
Last synced: 3 days ago
JSON representation
Aiogram version 3 web hook template via FastAPI
- Host: GitHub
- URL: https://github.com/quvonchbekbobojonov/aiogram-webhook-template
- Owner: QuvonchbekBobojonov
- License: mit
- Created: 2024-02-08T14:46:07.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-12T06:43:19.000Z (3 months ago)
- Last Synced: 2024-09-12T16:27:26.046Z (3 months ago)
- Topics: aiogram, aiogram-bot-template, aiogram-template, aiogram-webhooks, aiogram3, aiogram3-template, aiogram3-webhooks, fastapi, python-telegram-bot
- Language: Python
- Homepage:
- Size: 11.7 KB
- Stars: 9
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aiogram-webhook-template
This template provides a basic setup for using Aiogram version 3 with webhooks via FastAPI.
## Features
- Aiogram version 3
- FastAPI integration for webhooks
- Asynchronous handling of incoming updates
- Basic example commands and handlers## Requirements
- Python 3.11 and higher
- Aiogram library
- FastAPI library## Installation
1. Clone the repository:
```bash
git clone https://github.com/yourusername/aiogram-webhook-template.git
```2. Change into the project directory:
```bash
cd aiogram-webhook-template
```3. Install the required dependencies:
```bash
pip install -r requirements.txt
```## Configuration
1. Rename the `.env.example` file to `.env`:
```bash
cp .env.example .env
```2. Open the `.env` file and provide your Bot API token and other necessary configurations.
## Usage
1. Start bot
```bash
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.
## Contributing
Feel free to contribute to the project by opening issues or creating pull requests. Your feedback and collaboration are highly appreciated!
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.