Versions in this module Expand all Collapse all v0 v0.1.1 Feb 5, 2026 v0.1.0 Nov 16, 2025 Changes in this version + var DefaultTimeZone = 8 + func CalculateGridPosition(gridList []decimal.Decimal, price decimal.Decimal) (int, bool) + func DeleteMessages(botApi *tgbotapi.BotAPI, chatId int64, messagesIds []int, delaySeconds int) + func FormaDate(t time.Time, timeZone ...int) string + func FormaTime(t time.Time, timeZone ...int) string + func GenerateGrid(lowerPriceBound, upperPriceBound, takeProfitRatio decimal.Decimal) ([]decimal.Decimal, error) + func GetChatId(update *tgbotapi.Update) (int64, bool) + func ParseTime(date string, timeZone ...int) (time.Time, error) + func RandomMobileUserAgent() string + func RandomUserAgent() string + func ReplyMessage(botApi *tgbotapi.BotAPI, update tgbotapi.Update, text string, ...) (tgbotapi.Message, error) + func Retry(attempts int, sleep time.Duration, fn func() error) error + func SendMessage(botApi *tgbotapi.BotAPI, chatId int64, text string) (tgbotapi.Message, error) + func SendMessageAndDelayDeletion(botApi *tgbotapi.BotAPI, chatId int64, text string, delaySeconds int) + func String(s string) *string + func Tx(ctx context.Context, db *ent.Client, callback func(tx *ent.Tx) error) (err error) + type HashEncoder struct + func NewHashEncoder(salt string) (*HashEncoder, error) + func (coder *HashEncoder) Decryption(message string) (string, error) + func (coder *HashEncoder) Encryption(message string) (string, error)