{"id":22450141,"url":"https://github.com/liaartem/python_telegrambotaiogram","last_synced_at":"2025-03-27T12:17:22.188Z","repository":{"id":192966525,"uuid":"687433671","full_name":"LiaArtem/Python_TelegramBotAiogram","owner":"LiaArtem","description":"Python Telegram Bot using lib Aiogram, Redis, SQLite, Docker (exchange rates, exchange rate conversion, weather, unified register of debtors, securities)","archived":false,"fork":false,"pushed_at":"2023-11-28T16:18:29.000Z","size":176,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-01T16:47:42.184Z","etag":null,"topics":["aiogram","python","redis","telegram-bot","telegrambot"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LiaArtem.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-09-05T10:57:07.000Z","updated_at":"2023-09-10T08:34:43.000Z","dependencies_parsed_at":"2023-11-28T17:43:53.842Z","dependency_job_id":null,"html_url":"https://github.com/LiaArtem/Python_TelegramBotAiogram","commit_stats":null,"previous_names":["liaartem/python_telegrambotaiogram"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaArtem%2FPython_TelegramBotAiogram","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaArtem%2FPython_TelegramBotAiogram/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaArtem%2FPython_TelegramBotAiogram/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LiaArtem%2FPython_TelegramBotAiogram/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LiaArtem","download_url":"https://codeload.github.com/LiaArtem/Python_TelegramBotAiogram/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245841761,"owners_count":20681195,"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","python","redis","telegram-bot","telegrambot"],"created_at":"2024-12-06T05:13:18.044Z","updated_at":"2025-03-27T12:17:22.147Z","avatar_url":"https://github.com/LiaArtem.png","language":"Python","readme":"# Python_TelegramBotAiogram\nPython Telegram Bot using lib Aiogram, Redis, SQLite, Docker (exchange rates, exchange rate conversion, weather, unified register of debtors, securities)\n\nIDE - PyCharm Community Edition\n\n- Перевірка якості кода ruff check\n-\u003e pip install ruff\n-\u003e ruff check .\n\nНалаштування:\n - Відкрийте Telegram\n - Знайдіть @BotFather і почніть розмову.\n - Надішліть команду /newbot і дотримуйтесь інструкцій.\n - Alright, a new bot. How are we going to call it? Please choose a name for your bot.\n   - Вказуємо ім'я: LiaArtemTestBot або інше\n - Good. Now let's choose a username for your bot. It must end in `bot`. Like this, for example: TetrisBot or tetris_bot.\n   - Вказуємо ім'я: LiaArtemTestBot або інше\n - Use this token to access the HTTP API:\n   - Отримуємо токен, його використовуватимемо для підключення\n   - Зберігаємо токени у файл settings кладемо в корінь (формат UTF8) (Формат файлу settings в прикладі settings_example)\n   - Им'я файлу повинно бути: settings\n - Посилання на бот - t.me/LiaArtemTestBot або інше\n\nУ командному рядку терміналу IDE\n1) Додаємо бібліотеки\n-\u003e pip install aiogram\n-\u003e pip install emoji\n-\u003e pip install CurrencyConverter\n-\u003e pip install requests\n-\u003e pip install environs\n-\u003e pip install redis\n-\u003e pip install apscheduler\n-\u003e pip install aiosqlite\n-\u003e pip install apscheduler-di\n\nРозгортання у Docker\n-\u003e Запустити .\\!create_redis.bat\n-\u003e Запустити .\\telegrambot_docker.bat\n-\u003e Запустити .\\!create_network.bat\n-\u003e Перевірити через CMD за допомогою команди - docker network inspect telegram-bot-network\n   ID адресу серверу Redis (RedisContainer) в мережі Docker (наприклад: \"IPv4Address\": \"172.18.0.2/16\")\n    - Якщо IP адреса не відрізняється у файлі settings_docker, то прописувати не потрібно (за замовчанням 172.18.0.2)\n    - Якщо IP адреса відрізняється, то прописуємо її через Docker у файлі /usr/src/app/settings в контейнері TelegramBotContainer\n-\u003e Після зміни перезапустити контейнер TelegramBotContainer\n\n---------------------------------------------------\nОновлення пакетів у IDE PyCharm Community Edition:\n-\u003e Settings -\u003e Project:TelegramBot -\u003e Python Interpreter -\u003e Upgrade\n\nPyCharm Community Edition -\u003e Off message Typo: In word 'XXXXX'\nIDE in Settings -\u003e Editor -\u003e Inspections -\u003e Proofreading -\u003e Typo.\nЗняти галки з \"Process code\" та \"Process literals\" та \"Process comments\"","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliaartem%2Fpython_telegrambotaiogram","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliaartem%2Fpython_telegrambotaiogram","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliaartem%2Fpython_telegrambotaiogram/lists"}