Git Product home page Git Product logo

aiogram-template's Introduction

Aiogram Bot template

start developing your telegram bot right away!

I built this project, so i could develop my bots faster.

this bot doesn't do anything useful but it's a template for building fully functional bots.

it's an example implementation, you can do it however you like and change it to your liking!

project will be updated and new features will be added soon...

some other templates for Aiogram that this project is inspired by them:

Features

this template project uses:

Develpment tools:

installation

local installation for Linux

you need git and python +3.7 installed in your system

clone the repository:

first Fork this project on your github account if you want.

clone the repository:

example:

git clone https://github.com/sinaebrahimi1/aiogram-template.git

change directory to project's direcotry:

cd aiogram-template

install virtualenv with pip if you don't have it:

pip install virtualenv

create a new virtualenv and enable it:

python -m virtualenv .venv

source .venv/bin/activate

now you need to install needed libraries:

pip install -r requirements.txt

now you need MySql installed on your system(or in a docker container) and also redis.

make sure to install these two dependencies for your linux distro.

you can also use sqlite or postgresql or anything else that is supported by Tortoise-ORM.

now it's time to create .env file and enter your configuration:

mv .env.example .env

open the .env file in your editor and complete the required variables and any other configuration you want based on app/config.py file.

PROXY_URL is optional, it's useful if you live in a country that telegram is banned.

I'ts done!

now you can test it:

first make bot.py file executable: chmod +x app/bot.py

run the bot: app/bot.py or cd app && ./bot.py

also you can run the bot in auto-reload mode so it will reload the application every time you change a file:

./bot.py --reload

Deployment

deploy with docker

  • soon...

TODO

  • None

If you have any question or it's anything wrong with the app just open a github issue.

Any suggestion or contribution will be appreciated.

aiogram-template's People

Contributors

sina-e avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.