Skip to content

The Telegram bot EnGram was created for practicing English grammar. It was built using the aiogram framework. The bot extracts tests from APIs, depending on the specified setup. It also uses Aioredis for saving the user's ID, allowing the user to continue interacting with the bot without having to reselect their English level.

Notifications You must be signed in to change notification settings

yahrdev/EnGram_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EnGram Telegram Bot

The EnGram Telegram bot was created for practicing English grammar. It was built using the aiogram framework. The bot extracts tests from APIs presented here (Async API) and here (Sync API), depending on the specified setup. It also uses Aioredis for saving the user's ID, allowing the user to continue interacting with the bot without having to reselect their English level.

Technologies Used

  • aiogram: Framework for building Telegram bots.
  • Aioredis: Asynchronous Redis client for managing the cache layer.
  • Pydantic: For data validation in the bot's logic.
  • pytest-asyncio: For writing and running asynchronous unit tests.

Installation

1. Clone the repository

git clone https://github.com/yourusername/EnGram_bot.git

2. Navigate into the project directory

cd EnGram_bot

3. Install the dependencies

pip install -r requirements.txt

4. Set up the environment

Create .env and file based on the provided example.

5. Set up Redis

Download Redis and place the folder on disk C (for example). Open a command prompt and navigate to the Redis folder:

cd C:\Redis

Set up configuration file. You can either modify the redis.windows.conf or create a copy: redis-bot.conf. Start Redis server:

redis-server.exe redis-bot.conf

7. Run the application

python api/app.py

And check the telegram bot.

About

The Telegram bot EnGram was created for practicing English grammar. It was built using the aiogram framework. The bot extracts tests from APIs, depending on the specified setup. It also uses Aioredis for saving the user's ID, allowing the user to continue interacting with the bot without having to reselect their English level.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages