Update callbacks.goi
This commit is contained in:
parent
c78fe1a912
commit
099191529c
1 changed files with 1 additions and 2 deletions
|
|
@ -232,8 +232,7 @@ func (bot *Bot) sendCannedResponse(query *api.CallbackQuery, user *ExtendedChatJ
|
||||||
}
|
}
|
||||||
|
|
||||||
reason := utils.EscapeHTML(bot.Config.CannedDeclineResponses[respIdx])
|
reason := utils.EscapeHTML(bot.Config.CannedDeclineResponses[respIdx])
|
||||||
utils.SendMessage(bot.API, user.From.ID, 0,
|
utils.SendMessage(bot.API, user.From.ID, 0, reason)
|
||||||
fmt.Sprintf("Your join request was declined for the following reason:\n\n%s", reason))
|
|
||||||
|
|
||||||
// Extract user info from original message and reformat with the canned response
|
// Extract user info from original message and reformat with the canned response
|
||||||
userID, username, joinReason, declinedBy, declinedAt := utils.GetInfoFromMsg(query.Message.Text)
|
userID, username, joinReason, declinedBy, declinedAt := utils.GetInfoFromMsg(query.Message.Text)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue