A simple structure for creating telegram bots using AIOgram 3.
Readme template:
About...
The bot provides the following features:
The bot has several commands that can be used to access its features:
/start
: Sends a .../help
: Sends a ...
- Python v3.10
- aiogram v3
- dotenv v1
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
.