Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABOUT PROJECT

This is project created for medical telegram group. For easy and fast requests to psychologist medic.

This is use

Langue: Go (1.25.5)
Data Base: PostgresSQL
Framework: TelegramBotAPI, sqlc, caarlos0/env, gocron, godotenv, goose

Start

Installation
git clone https://github.com/TheDEKKs/PsychologistBot.git
cd PsychologistBot
touch .env
ENV Exemple
DATABASE_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/
Start app
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 ./cmd

Important

If at you not can use goose, add GOPATH in PATH bash export PATH=$PATH:$(go env GOPATH)/bin

COMMANDS

  • /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

About

This is project created for medical telegram group. For easy and fast request to psychologist medic.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages