Skip to content
/ aiogram-bot-template Public template

A repo template for creating telegram bots with AIOgram 3.

Notifications You must be signed in to change notification settings

welel/aiogram-bot-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AIOgram Telegram Bot Template

A simple structure for creating telegram bots using AIOgram 3.


Readme template:

[project name]

aiogram aiogram License

About...

Features

The bot provides the following features:

Commands

The bot has several commands that can be used to access its features:

  • /start: Sends a ...
  • /help: Sends a ...

Requirements

  • Python v3.10
  • aiogram v3
  • dotenv v1

Installation

To get started with this bot, follow these steps:

  • Clone this repository to your local machine.

    $ git clone [source]
    
  • Create a virtual environment, activate it and install required dependencies.

    $ python3.10 -m venv env
    $ source env/bin/activate
    $ pip install -r requirements/local.txt
    
  • Create a new bot on Telegram by talking to the BotFather, and obtain the API token.

  • Rename the file .env.dist to .env and replace the placeholders with required data.

  • Run the bot using python bot.py.