add banned until to message
This commit is contained in:
parent
4f8d18b696
commit
0bde13e836
2 changed files with 3 additions and 2 deletions
|
|
@ -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,
|
||||
),
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue