Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.