Skip to content
qzbxwPublic

About

Go and PostgreSQL micro-CRM for Telegram Business ad bookings, reminders, and spend reports.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

Repository files navigation

Keeper

Keeper is a small Telegram Business micro-CRM for ad buys, ambassadors, and channel integrations.

It listens to manager chats through Telegram Business bot updates, records deals from short service commands, sends reminders to a private admin chat, and keeps a lightweight spend/status report.

Stack and workflow

Telegram Business updates → Go command parser and deal service → PostgreSQL → Telegram reminders and reports.

A manager books a placement from a business chat. Keeper records its date and price, tracks payment and publication, and sends reminders and spend summaries to the admin chat.

Run

Set KEEPER_BOT_TOKEN, KEEPER_ADMIN_CHAT_ID, and a strong POSTGRES_PASSWORD in .env. Connect the bot in Telegram Business settings.

cp .env.example .env
${EDITOR:-vi} .env
docker compose up --build -d

Business Chat Commands

/book 15.07 18:00 50usdt @channel
/move 16.07 20:00
/paid
/sent
/posted
/stats 12000 views 430 clicks 86 joins
/note next placement with discount
/bad did not post on time
/cancel reason

Admin Chat Commands

/today
/tomorrow
/pending
/stats_due
/deal 123
/report_month
/report_month 2026-07

Go example

The following snippet uses the command parser inside the repository.

package main

import (
    "fmt"
    "time"

    "github.com/qzbxw/keeper/internal/keeper"
)

func main() {
    now := time.Date(2026, 7, 7, 12, 0, 0, 0, time.UTC)
    booking := keeper.ParseBook("15.07 18:00 50usdt @channel", now, time.UTC)
    fmt.Println(booking.ChannelUsername, booking.PriceAmount, booking.PriceCurrency)
}

About

Go and PostgreSQL micro-CRM for Telegram Business ad bookings, reminders, and spend reports.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages