thuanle 47d07f2092
Build Docker Image / build (amd64) (push) Successful in 1m3s
style: fix gofmt alignment in resolver_test.go stub
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 21:15:53 +07:00
CI
2024-10-24 10:05:04 +07:00
CI
2024-10-24 10:05:04 +07:00
2024-10-24 09:53:02 +07:00
2026-04-26 17:14:52 +07:00
2025-10-09 09:14:24 +07:00
2024-10-24 09:53:02 +07:00

crypto price bot

Telegram bot tra giá crypto (Spot / Future / Alpha), funding rate và margin APR.

Environment variables

Tạo file .env ở root project với các biến sau:

# BẮT BUỘC: token bot Telegram
TELEGRAM_TOKEN=your_telegram_bot_token

# TÙY CHỌN: bật/tắt log env mode (mặc định true nếu không set)
# giá trị hợp lệ: true / false
LOG_ENV=true

# TÙY CHỌN nhưng KHUYẾN NGHỊ: Telegram user id được phép dùng /refresh
# nếu không set hoặc set sai format -> /refresh sẽ bị từ chối cho tất cả user
ADMIN_CHAT_ID=123456789

Run

go run ./cmd/tele

Notes

  • TELEGRAM_TOKEN sai/thiếu: bot sẽ fail khi khởi tạo Telegram service.
  • /refresh dùng để refresh trading pair cache thủ công và chỉ cho ADMIN_CHAT_ID.
S
Description
No description provided
Readme 574 KiB
Languages
Go 99.5%
Dockerfile 0.5%