add ban button
This commit is contained in:
parent
d157f9b2c9
commit
4f8d18b696
3 changed files with 35 additions and 2 deletions
|
|
@ -38,7 +38,11 @@ func EscapeHTML(s string) string {
|
|||
func NewApprovalKeyboard(userID int64) api.InlineKeyboardMarkup {
|
||||
approveBtn := api.NewInlineKeyboardButtonData("Approve", fmt.Sprintf("approve_%d", userID))
|
||||
declineBtn := api.NewInlineKeyboardButtonData("Decline", fmt.Sprintf("decline_%d", userID))
|
||||
return api.NewInlineKeyboardMarkup([]api.InlineKeyboardButton{approveBtn, declineBtn})
|
||||
banBtn := api.NewInlineKeyboardButtonData("Ban", fmt.Sprintf("ban_%d", userID))
|
||||
return api.NewInlineKeyboardMarkup(
|
||||
[]api.InlineKeyboardButton{approveBtn, declineBtn},
|
||||
[]api.InlineKeyboardButton{banBtn},
|
||||
)
|
||||
}
|
||||
|
||||
func GetInfoFromMsg(msg string) (userId int64, username, joinReason, declinedBy, declinedAt string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue