/aiogram-bot-template

A repo template for creating telegram bots with AIOgram 3.

Primary LanguagePython

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.