{"id":26649026,"url":"https://github.com/dextiles/async-tg-bot-template","last_synced_at":"2025-03-25T00:47:45.477Z","repository":{"id":283382713,"uuid":"951586611","full_name":"Dextiles/Async-tg-bot-template","owner":"Dextiles","description":"Template for an asynchronous Telegram bot using the pyTelegramBotAPI library with support for deployment via Docker.","archived":false,"fork":false,"pushed_at":"2025-03-19T23:42:11.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-20T00:28:36.719Z","etag":null,"topics":["async","asynchronous","bot-template","docker","docker-compose","pytelegrambotapi","python","telegram","telegram-bot","telegram-bot-template","template","templates"],"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/Dextiles.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":"2025-03-19T23:18:25.000Z","updated_at":"2025-03-19T23:43:20.000Z","dependencies_parsed_at":"2025-03-20T00:28:40.460Z","dependency_job_id":"45845c75-857f-4d95-897e-4a76a808ee75","html_url":"https://github.com/Dextiles/Async-tg-bot-template","commit_stats":null,"previous_names":["dextiles/async-tg-bot-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dextiles%2FAsync-tg-bot-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dextiles%2FAsync-tg-bot-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dextiles%2FAsync-tg-bot-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dextiles%2FAsync-tg-bot-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dextiles","download_url":"https://codeload.github.com/Dextiles/Async-tg-bot-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245377954,"owners_count":20605375,"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":["async","asynchronous","bot-template","docker","docker-compose","pytelegrambotapi","python","telegram","telegram-bot","telegram-bot-template","template","templates"],"created_at":"2025-03-25T00:47:44.275Z","updated_at":"2025-03-25T00:47:45.464Z","avatar_url":"https://github.com/Dextiles.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Архитектура асинхронного телеграм-бота\n\n[Русский](#архитектура-асинхронного-телеграм-бота) | [English](#asynchronous-telegram-bot-architecture)\n\n## Описание\nЭтот проект представляет собой асинхронного телеграм-бота, написанного на Python с использованием библиотеки `pyTelegramBotAPI`. Бот поддерживает бесконечное опросное взаимодействие и имеет возможность установки команд по умолчанию.\n\n## Установка\nДля установки и запуска бота выполните следующие шаги:\n\n1. Клонируйте репозиторий:\n    ```sh\n    git clone \u003cURL вашего репозитория\u003e\n    cd \u003cназвание репозитория\u003e\n    ```\n\n2. Создайте файл `.env` в корне проекта и добавьте в него ваш токен телеграм-бота:\n    ```env\n    BOT_TOKEN=\"ваш_токен\"\n    ```\n   Подробнее изучите шаблон файла `.env.template`.\n\n### Вариант с Docker\n\n3. Соберите и запустите контейнер Docker:\n    ```sh\n    docker build -t telegram-bot .\n    docker run --env-file .env telegram-bot\n    ```\n\n### Вариант без Docker\n\n3. Создайте и активируйте виртуальное окружение:\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # Для Windows используйте `venv\\Scripts\\activate`\n    ```\n\n4. Установите зависимости:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n5. Запустите бота:\n    ```sh\n    cd bot\n    python main.py\n    ```\n\n## Функционал\n- **Асинхронная работа**: Бот работает асинхронно, что позволяет ему обрабатывать несколько запросов одновременно.\n- **Установка команд по умолчанию**: При запуске бота устанавливаются команды по умолчанию, которые могут быть использованы пользователями.\n- **Бесконечное опросное взаимодействие**: Бот постоянно опрашивает сервер Telegram на наличие новых сообщений и обрабатывает их.\n\n## Лицензия\nЭтот проект лицензирован по лицензии MIT. Подробности можно найти в файле `LICENSE`.\n\n---\n\n# Asynchronous Telegram Bot Architecture\n\n[Русский](#архитектура-асинхронного-телеграм-бота) | [English](#asynchronous-telegram-bot-architecture)\n\n## Description\nThis project is an asynchronous Telegram bot written in Python using the `pyTelegramBotAPI` library. The bot supports infinite polling interaction and has the ability to set default commands.\n\n## Installation\nTo install and run the bot, follow these steps:\n\n1. Clone the repository:\n    ```sh\n    git clone \u003cyour-repository-url\u003e\n    cd \u003crepository-name\u003e\n    ```\n\n2. Create a `.env` file in the root of the project and add your Telegram bot token:\n    ```env\n    BOT_TOKEN=\"your_token\"\n    ```\n   See the `.env.template` file for more details.\n\n### Docker Option\n\n3. Build and run the Docker container:\n    ```sh\n    docker build -t telegram-bot .\n    docker run --env-file .env telegram-bot\n    ```\n\n### Non-Docker Option\n\n3. Create and activate a virtual environment:\n    ```sh\n    python -m venv venv\n    source venv/bin/activate  # For Windows use `venv\\Scripts\\activate`\n    ```\n\n4. Install dependencies:\n    ```sh\n    pip install -r requirements.txt\n    ```\n\n5. Run the bot:\n    ```sh\n    cd bot\n    python main.py\n    ```\n\n## Features\n- **Asynchronous operation**: The bot works asynchronously, allowing it to handle multiple requests simultaneously.\n- **Setting default commands**: When the bot starts, default commands are set, which can be used by users.\n- **Infinite polling interaction**: The bot constantly polls the Telegram server for new messages and processes them.\n\n## License\nThis project is licensed under the MIT License. See the `LICENSE` file for details.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdextiles%2Fasync-tg-bot-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdextiles%2Fasync-tg-bot-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdextiles%2Fasync-tg-bot-template/lists"}