Giter VIP home page Giter VIP logo

tg-bot-template's Introduction

AIOGram template

πŸ‡ΊπŸ‡Ώ | Telegram botlar uchun shablon.

Template arxitekturasi

Botda local foydalanayotganda siz mongodb-express dan ham foydalansangiz bo'ladi. Botni docker orqali ishga tushirgandan keyin: http://localhost:8081

Foydalanish bo'yicha yo'riqnoma:

Barcha configlar config.py faylida joylashgan. Botni ishga tushirishdan oldin, .env.dist faylini .env ga o'zgartiring va configlarni to'g'rilang.

Botni ishga tushirish:

 $ pip install -r requirements.txt
 $ python3 app.py

Botni ishga tushirish Docker bilan:

 $ docker build -t aiogram-bot .
 $ docker run -d --name aiogram-bot aiogram-bot

Botni ishga tushirish Docker bilan va Docker Compose bilan:

 $ docker-compose up -d --build

Serverga yuklash

Ishga tushirish uchun quyidagi buyruqlardan foydalansangiz bo'ladi.

 $ docker-compose -f docker-compose.prod.yml up -d --build 

Loglarni ko'rish uchun quyidagi buyruqdan foydalansangiz bo'ladi. Docker logs haqida bu yerdan ma'lumot olishingiz mumkin: https://docs.docker.com/config/containers/logging/configure/

 $ docker-compose -f docker-compose.prod.yml logs -f 

Qo'shimcha ma'lumotlar

  • Botda juda ko'p qo'llaniladigan boardcaster funksiyalari mavjuda. Tekshirish uchun bu yerni bosing.
  • Bot ishga tushganda barcha adminlarga xabar boradi.
  • Botning commandalarini ko'rish va o'zgartirish uchun bu yerni bosing.

Hissa qo'shish

Template O'zbek telegram bot hamjamiyati uchun yaratilgan. 
Agar sizda biror takliflar bo'lsa, PR yuboring.

tg-bot-template's People

Contributors

firdavsdev avatar

Stargazers

Shodiev Shokhrukh avatar

Watchers

 avatar

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.