mirror of
https://github.com/krau/SaveAny-Bot.git
synced 2026-05-11 21:09:40 +08:00
fix: missing progress stats i18n
This commit is contained in:
@@ -43,9 +43,9 @@ func (p *Progress) OnStart(ctx context.Context, info TaskInfo) {
|
||||
log.FromContext(ctx).Debugf("Batch import task progress tracking started for message %d in chat %d", p.MessageID, p.ChatID)
|
||||
|
||||
sizeMB := float64(info.TotalSize()) / (1024 * 1024)
|
||||
statsText := i18n.T(i18nk.BotMsgProgressImportStartStats, map[string]any{
|
||||
"size": fmt.Sprintf("%.2f", sizeMB),
|
||||
"count": info.Count(),
|
||||
statsText := i18n.T(i18nk.BotMsgImportStartStats, map[string]any{
|
||||
"SizeMB": fmt.Sprintf("%.2f", sizeMB),
|
||||
"Count": info.Count(),
|
||||
})
|
||||
|
||||
entityBuilder := entity.Builder{}
|
||||
|
||||
Reference in New Issue
Block a user