add banned until to message

This commit is contained in:
Astra 2026-02-17 20:19:12 +00:00
parent 4f8d18b696
commit 0bde13e836
2 changed files with 3 additions and 2 deletions

View file

@ -116,10 +116,11 @@ func (bot *Bot) handleBanRequest(query *api.CallbackQuery, user *ExtendedChatJoi
return
}
bannedUntil := time.Now().Add(24 * time.Hour).Format("2006-01-02 15:04:05")
utils.EditMessage(bot.API, query.Message.Chat.ID, query.Message.MessageID,
fmt.Sprintf(AdminBannedMsg,
userString, user.From.ID, user.JoinReason, adminUserString,
time.Now().Format("2006-01-02 15:04:05"),
time.Now().Format("2006-01-02 15:04:05"), bannedUntil,
),
)