Files
crypto-price-bot/internal/services/tele/commands/general.go
thuanle b60fcb842d
All checks were successful
Build Docker Image / build (amd64) (push) Successful in 1m40s
CI
2024-10-24 10:05:04 +07:00

15 lines
341 B
Go

package commands
import (
"gopkg.in/telebot.v3"
"me.thuanle/bbot/internal/configs"
"me.thuanle/bbot/internal/services/tele/chat"
"me.thuanle/bbot/internal/utils/netx"
)
func OnGetVersion(context telebot.Context) error {
ip := netx.GetPublicIp()
msg := "v" + configs.Version + " - " + ip
return chat.ReplyMessageCode(context, msg)
}