Restructured project

- backend moved to backend directory
- added and initialized frontend with vue
- moved infrastructure files to infra directory
This commit is contained in:
2026-04-01 22:27:26 +03:00
parent 48ef7217eb
commit 9d845c8899
96 changed files with 1591 additions and 118 deletions
+21
View File
@@ -0,0 +1,21 @@
package handlers
import (
"log"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
)
func (h *Handler) reply(chat int64, text string) {
m := tgbotapi.NewMessage(chat, text)
_, err := h.api.Send(m)
if err != nil {
log.Fatal(err)
}
}
func (h *Handler) replyMarkdown(chatID int64, text string) {
msg := tgbotapi.NewMessage(chatID, text)
msg.ParseMode = tgbotapi.ModeMarkdown
h.api.Send(msg)
}