Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/under-web/manager_bot
π€ΠΠΎΡ ΠΏΠΎΠΌΠΎΡΠ½ΠΈΠΊ c ΠΊΠ»Π°Π²ΠΈΠ°ΡΡΡΠΎΠΉ Π΄Π»Ρ ΠΏΡΠΈΠ΅ΠΌΠ° Π·Π°ΡΠ²ΠΎΠΊ Π² ΡΠ΅Π»Π΅Π³ΡΠ°ΠΌ ΠΈ Π·Π°ΠΏΠΈΡΡ Π² ΠΠ SQLite. Bot assistant with a keyboard for accepting requests in telegram and recording in the SQLite database
https://github.com/under-web/manager_bot
manager-bot pytelegrambotapi python telegram-bot
Last synced: 3 months ago
JSON representation
π€ΠΠΎΡ ΠΏΠΎΠΌΠΎΡΠ½ΠΈΠΊ c ΠΊΠ»Π°Π²ΠΈΠ°ΡΡΡΠΎΠΉ Π΄Π»Ρ ΠΏΡΠΈΠ΅ΠΌΠ° Π·Π°ΡΠ²ΠΎΠΊ Π² ΡΠ΅Π»Π΅Π³ΡΠ°ΠΌ ΠΈ Π·Π°ΠΏΠΈΡΡ Π² ΠΠ SQLite. Bot assistant with a keyboard for accepting requests in telegram and recording in the SQLite database
- Host: GitHub
- URL: https://github.com/under-web/manager_bot
- Owner: under-web
- Created: 2021-08-07T09:06:11.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-10T09:04:40.000Z (7 months ago)
- Last Synced: 2024-07-11T10:39:58.274Z (7 months ago)
- Topics: manager-bot, pytelegrambotapi, python, telegram-bot
- Language: Python
- Homepage:
- Size: 123 KB
- Stars: 21
- Watchers: 2
- Forks: 12
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
2) `pip install -r requirements.txt `
## Dependencies
Python 3.XBe 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:
2) `pip install -r req.txt`
## ΠΠ°ΠΏΡΡΠΊ
1) Π ΡΠ°ΠΉΠ»Π΅ **config.py** ΠΏΡΠΎΠΏΠΈΡΡΠ²Π°Π΅ΠΌ ΡΠΎΠΊΠ΅Π½ Π±ΠΎΡΠ° [(Π²Π·ΡΡΡ ΠΌΠΎΠΆΠ½ΠΎ Π² BotFather)](https://telegram.me/BotFather)2) ΠΠ°ΠΏΡΡΠΊΠ°Π΅ΠΌ `python main.py`
## Run
1) In the **config.py** file we register the bot token [(you can get it in BotFather)](https://telegram.me/BotFather)2) Run `python main.py`