Git Product home page Git Product logo

aiogram_template's Introduction

aiogram_template

About

Inspired by Tishka17's tgbot_template and customized with some useful things.

Simple template for bots written on aiogram.

Setting up

System dependencies

  • Python 3.9+
  • Redis (if you set use_redis = true in bot.ini)

Preparations

  • Clone this repo via https://github.com/nodir-malikov/aiogram_template.git

Without Poetry:

  • Create virtual environment: python -m venv venv
  • Make venv your source: source ./venv/bin/activate (Linux) or .\venv\Scripts\activate (Windows)
  • Install requirements: pip install -r requirements.txt

With Poetry:

  • Just run poetry install (if you haven't installed poetry yet, you can find instructions here)

Deployment

  • Copy bot.ini.example to bot.ini and set your variables.

Without Systemd:

  • Run bot: python bot.py

With Systemd:

  • Copy systemd config to systemd system folder with: sudo cp systemd/yourbotname.service.example /etc/systemd/system/mynewbot.service "mynewbot" - you can change to any name.
  • Open config and reconfigure with your parameters: sudo nano /etc/systemd/system/mynewbot.service
  • Reload systemd daemon with: sudo systemctl daemon-reload
  • Start your bot service with: sudo systemctl start mynewbot.service

Useful

Aiogram

Test bot: https://t.me/aiogram_template_bot

aiogram_template's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jakha921

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.