Skip to content

πŸ€–Π‘ΠΎΡ‚ ΠΏΠΎΠΌΠΎΡ‰Π½ΠΈΠΊ c ΠΊΠ»Π°Π²ΠΈΠ°Ρ‚ΡƒΡ€ΠΎΠΉ для ΠΏΡ€ΠΈΠ΅ΠΌΠ° заявок Π² Ρ‚Π΅Π»Π΅Π³Ρ€Π°ΠΌ ΠΈ запись Π² Π‘Π” SQLite. Bot assistant with a keyboard for accepting requests in telegram and recording in the SQLite database

Notifications You must be signed in to change notification settings

under-web/manager_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

46 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

manager_bot

Π‘ΠΎΡ‚ с ΠΊΠ»Π°Π²ΠΈΠ°Ρ‚ΡƒΡ€ΠΎΠΉ , для ΠΏΡ€ΠΈΡ‘ΠΌΠ° заявок Π² Ρ‚Π΅Π»Π΅Π³Ρ€Π°ΠΌΠ΅ ΠΈ обозначСния ΠΏΡ€Π΅Π΄Π²Π°Ρ€ΠΈΡ‚Π΅Π»ΡŒΠ½ΠΎΠΉ стоимости услуг. Π”Π°Π½Π½Ρ‹Π΅ записываСм Π² Π‘Π” SQLite. A bot with a keyboard for accepting applications in telegram and indicating the preliminary cost of services. We write the data to the SQLite database.

ΠœΠΎΠ΄ΡƒΠ»ΠΈ

Π² Ρ„Π°ΠΉΠ»Π΅ markups.py ΠΎΠ±ΡŒΡΠ²Π»Π΅Π½Ρ‹ всС ΠΊΠ»Π°Π²ΠΈΠ°Ρ‚ΡƒΡ€Ρ‹ для удобства Ρ€Π°ΡΡˆΠΈΡ€Π΅Π½ΠΈΡ Π±ΠΎΡ‚Π°. Π›ΠΎΠ³ΠΈΠΊΠ° Π±ΠΎΡ‚Π° ΠΈ ΠΊΠΎΠ΄ Π² main.py

Π’ config.py Π»Π΅ΠΆΠΈΡ‚ Ρ‚ΠΎΠΊΠ΅Π½ Π±ΠΎΡ‚Π°

Π’ intro_text.py Π²Π²ΠΎΠ΄Π½Ρ‹ΠΉ тСкст

Π’ title.jpg Π½Π°Ρ‡Π°Π»ΡŒΠ½Π°Ρ ΠΊΠ°Ρ€Ρ‚ΠΈΠ½ΠΊΠ°

Moduls

all keyboards are declared in the markups.py file for the convenience of expanding the bot. Bot logic and code in main.py

In config.py there is a bot token

In intro_text.py introductory text

In title.jpg initial picture

Зависимости

Python 3.X

ΠžΠ±ΡΠ·Π°Ρ‚Π΅Π»ΡŒΠ½ΠΎ установитС Π²ΠΈΡ€Ρ‚ΡƒΠ°Π»ΡŒΠ½ΠΎΠ΅ ΠΎΠΊΡ€ΡƒΠΆΠ΅Π½ΠΈΠ΅:

  1. python -m venv venv

Π˜Π½Π°Ρ‡Π΅ ΠΌΠΎΠ³ΡƒΡ‚ Π±Ρ‹Ρ‚ΡŒ ΠΏΡ€ΠΎΠ±Π»Π΅ΠΌΡ‹, Ссли установлСны Π΄Ρ€ΡƒΠ³ΠΈΠ΅ вСрсии ΠΈΠ»ΠΈ Π±ΠΈΠ±Π»ΠΈΠΎΡ‚Π΅ΠΊΠΈ ΠΎΡ‚ telethon, Telegrambotapi ΠΈ ΠΏΡ€.

Зависимости Π² Π² Ρ„Π°ΠΉΠ»Π΅ requirements.txt,ΠΌΠΎΠΆΠ½ΠΎ ΡƒΡΡ‚Π°Π½ΠΎΠ²ΠΈΡ‚ΡŒ с ΠΌΠΎΠΌΠΎΡ‰ΡŒΡŽ pip:

  1. pip install -r requirements.txt

Dependencies

Python 3.X

Be sure to install the virtual environment:

  1. python -m venv venv

Otherwise, there may be problems if other versions or libraries from telethon, Telegrambotapi, etc. are installed.

Dependencies in the req.txt file can be installed using pip:

  1. pip install -r req.txt

Запуск

  1. Π’ Ρ„Π°ΠΉΠ»Π΅ config.py прописываСм Ρ‚ΠΎΠΊΠ΅Π½ Π±ΠΎΡ‚Π° (Π²Π·ΡΡ‚ΡŒ ΠΌΠΎΠΆΠ½ΠΎ Π² BotFather)

  2. ЗапускаСм python main.py

Run

  1. In the config.py file we register the bot token (you can get it in BotFather)

  2. Run python main.py

About

πŸ€–Π‘ΠΎΡ‚ ΠΏΠΎΠΌΠΎΡ‰Π½ΠΈΠΊ c ΠΊΠ»Π°Π²ΠΈΠ°Ρ‚ΡƒΡ€ΠΎΠΉ для ΠΏΡ€ΠΈΠ΅ΠΌΠ° заявок Π² Ρ‚Π΅Π»Π΅Π³Ρ€Π°ΠΌ ΠΈ запись Π² Π‘Π” SQLite. Bot assistant with a keyboard for accepting requests in telegram and recording in the SQLite database

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages