TG-bot-CS_FK

Форк
0

README.md

TG-bot-CS_FK

About the attachment

A bot created to introduce children, schoolchildren or students, to computer technology. In particular, the functionality of the presented application will be continuously expanded and will provide more and more new and different features for interactivity and immersion in the world of computer technology.

Opportunities

Several functions are available: Convert any words or letters, as well as symbols, into machine code as modern computers read it. Also, reverse conversion, from machine code to human-readable characters or words.

Others

The bot is developed using the aiogram framework, which makes it easy to create and manage bots for Telegram.

To run the bot, you need to install the dependencies specified in the requirements.txt file and configure the Telegram API token. Detailed instructions on installation and configuration can be found below.

Installation

Python 3.10.5

Clone the TG-bot-CS_FK repository to your local machine.

git clone https://github.com/Aleks-Ti/TG-bot-CS_FK.git

Create and activate a virtual environment:

python3 -3.10 -m venv venv

Activate virtual environment:

source venv/Sourse/activate (windows) / source venv/bin/activate (unix)

Install dependencies from the file requirements.txt:

pip install -r requirements.txt

Before launching

cd projectС/

For the bot to work, you need to create a file in the .env folder and specify two keys:

Telegram bot token (required!) Account id (optionally(not necessarily))

TOKEN = "your TG token of the channel bot"
CHAT_ID = 0123456789 # your personal ID (optionally)

Start

Create model in db

cd models/

Highlight all the code in the models.py file and press shift + enter in VScode to load the data for the Python command line, or invoke the Python terminal and manually write the data imorts in the models.py file to create a table in the database via the command:

Base.metadata.create_all(engine)

Now, the table for users is created, you can start the project.

cd ../projectС/
python main.py

License

TG_bot-Exchange-rate is released under the MIT License.

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.