The bot was created within educational work for common principles of Telegram Bot API using demonstrating.
The bot is able to greet new or returned users and keeps records of all users which have non blocked chats with the bot.
command | description | Localized description |
---|---|---|
/members_count |
returns total amount of all users which use the bot nowadays | Получить общее количество пользователей |
/recommended_shoes |
returns recommended shoes | Получить рекомендуемую обувь |
/size |
sets customer's scale | Установить свой размер |
/wish_list |
returns current wish list | Получить список желаемого |
- Java 15
- Maven
- Spring Boot
- Hibernate
- HOCON
- Hyper SQL Database
- Docker
- Docker
- Makefile
- Java 15
- Maven (with toolchain plugin)
- Create Hyper SQL Database instance in
db
directory with username sa and password password - Run
src/main/resources/schema.sql
andsrc/main/resources/init.sql
for created database - Rename
config/telegram-example.conf
toconfig/telegram.conf
- Write name and token of your bot in
config/telegram.conf
- Replace zhenyria in
Makefile
by name of your Docker hub account (it is necessary for pushing created image to your Docker hub repository) - Run
make create_image tag=<WRITE TAG HERE>
The image will is created. It could be run by make run tag=<WRITE TAG HERE>