This is project created for medical telegram group. For easy and fast requests to psychologist medic.
Langue: Go (1.25.5)
Data Base: PostgresSQL
Framework: TelegramBotAPI, sqlc, caarlos0/env, gocron, godotenv, goose
git clone https://github.com/TheDEKKs/PsychologistBot.git
cd PsychologistBot
touch .envDATABASE_URL=postgres://quickHelp:quickHelp@localhost:5432/quickHelp
BOT_TOKEN=your token
GOOSE_DRIVER=postgres
GOOSE_DBSTRING=postgres://quickHelp:quickHelp@localhost:5432/quickHelp
GOOSE_MIGRATION_DIR=./migrations/go install github.com/pressly/goose/v3/cmd/goose@latest
go mod tidy
goose up
docker compose up -d
psql -h localhost -U quickHelp -d quickHelp -a (Password quickHelp)INSERT INTO admins (user_id) VALUES (your telegram id);go run ./cmdImportant
If at you not can use goose, add GOPATH in PATH
bash export PATH=$PATH:$(go env GOPATH)/bin
-
/post
Command for created help post in the this chat -
/chat
Command for linked this chat for acceptance help requests
Important
Only one chat for acceptance help requests