add bacfoy eth
All checks were successful
Build Docker Image / build (amd64) (push) Successful in 5m28s

This commit is contained in:
thuanle
2025-08-22 22:06:02 +07:00
parent 7228d659a2
commit b9e6abf4cf

View File

@@ -1,7 +1,8 @@
package commands
import (
"fmt"
"golang.org/x/text/language"
"golang.org/x/text/message"
"gopkg.in/telebot.v3"
"me.thuanle/bbot/internal/configs/tele"
"me.thuanle/bbot/internal/data"
@@ -47,10 +48,12 @@ func OnTokenInfoByToken(context telebot.Context, token string) error {
baseTotal := baseAmount * basePrice
curTotal := baseAmount * sp
msg := fmt.Sprintf(
"🎉∑ Bắc Kiều Phong's USDT: %.0f\n"+
"🎊 Bắc Kiều Phong's lợi nhuận: %.0f",
baseTotal, curTotal-baseTotal,
mFmt := message.NewPrinter(language.AmericanEnglish)
msg := mFmt.Sprintf(
"🎉∑ Bắc Kiều Foy's USDT: %.0f\n"+
"🎊 Bắc Kiều Foy's lợi nhuận: %.0f",
curTotal, curTotal-baseTotal,
)
_ = chat.ReplyMessage(context, msg)
}