{"id":22954987,"url":"https://github.com/bushlanovdev/aiogram-fastapi-bot-template","last_synced_at":"2025-04-16T05:51:39.855Z","repository":{"id":259262315,"uuid":"861262242","full_name":"BushlanovDev/aiogram-fastapi-bot-template","owner":"BushlanovDev","description":"🤖💬 A simple template for creating a telegram bot on webhooks using the aiogram and fastapi","archived":false,"fork":false,"pushed_at":"2025-02-07T19:38:24.000Z","size":25,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-29T05:04:43.372Z","etag":null,"topics":["aiogram","bot","python","telegram","telegram-bot","template","template-project"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BushlanovDev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-22T12:43:33.000Z","updated_at":"2025-02-07T19:38:28.000Z","dependencies_parsed_at":"2024-10-24T00:24:09.726Z","dependency_job_id":"69b9d33d-6ae2-41e1-9678-9620c6a1c2b3","html_url":"https://github.com/BushlanovDev/aiogram-fastapi-bot-template","commit_stats":null,"previous_names":["bushlanovdev/aiogram-fastapi-bot-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BushlanovDev%2Faiogram-fastapi-bot-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BushlanovDev%2Faiogram-fastapi-bot-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BushlanovDev%2Faiogram-fastapi-bot-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BushlanovDev%2Faiogram-fastapi-bot-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BushlanovDev","download_url":"https://codeload.github.com/BushlanovDev/aiogram-fastapi-bot-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249205040,"owners_count":21229851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aiogram","bot","python","telegram","telegram-bot","template","template-project"],"created_at":"2024-12-14T16:20:31.828Z","updated_at":"2025-04-16T05:51:39.842Z","avatar_url":"https://github.com/BushlanovDev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🤖 Aiogram Fastapi Bot Template\n\n[![Actions status](https://github.com/BushlanovDev/aiogram-fastapi-bot-template/actions/workflows/check.yml/badge.svg)](https://github.com/BushlanovDev/aiogram-fastapi-bot-template/actions) [![Python](https://img.shields.io/badge/Python-3.12%2B-brightgreen)](https://www.python.org/downloads/) [![Aiogram](https://img.shields.io/badge/aiogram-3.17-brightgreen)](https://pypi.org/project/aiogram/)\n\nA simple template for creating a telegram bot on webhooks using the **aiogram** and **fastapi**\n\n### 💻 Installation\n\n1. Clone project `git clone https://github.com/BushlanovDev/aiogram-fastapi-bot-template.git`\n2. Create a virtual venv `python -m venv venv` and `source venv/bin/activate`\n3. Install dependencies `pip install -r requirements.txt`\n4. Copy config template `cp .env.example .env`\n\n### ✍️ Configuration\n\nEdit the .env file  \n`APP__DEBUG` `true` or `false`, development mode  \n`APP__PORT` Port of application for fastapi (`8080`)  \n`APP__URL` The base domain of the application (`https://example.com`)  \n`APP__WEBHOOK_PATH` The route to which hooks from telegram will come (`/webhook/tg`)  \n`APP__DEFAULT_LANGUAGE` Default response language if the user's language is not received in the hook (`en`)  \n`TG_BOT__TOKEN` Telegram bot secret token\n\n### 🚀 Run bot\n\nFor local launch you will most likely need the application [ngrok](https://ngrok.com/) or similar. `APP__URL` needs to\nbe copied from ngrok window to config.  \nRun bot `python main.py` or `docker compose up -d`\n\n### 📁 Bot structure\n\n| Folder      | Description                              |\n|-------------|------------------------------------------|\n| callbacks   | Callback data                            |\n| configs     | Configuration files                      |\n| handlers    | Handlers, commands, callbacks            |\n| i18n        | Localization                             |\n| keyboards   | Keyboards reply, inline                  |\n| middlewares | Middlewares for localization, throttling |\n| services    | Custom libraries                         |\n| states      | State objects                            |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushlanovdev%2Faiogram-fastapi-bot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbushlanovdev%2Faiogram-fastapi-bot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbushlanovdev%2Faiogram-fastapi-bot-template/lists"}