ADD use of internal keyboard creation

This commit is contained in:
maximo tejeda 2025-02-23 09:54:49 -04:00
parent cd51d2df09
commit 0f2ba7af44

View File

@ -186,17 +186,13 @@ ChatID: %d
}
bn, _ := b.GetMe(context.Background())
kbd := &models.InlineKeyboardMarkup{
InlineKeyboard: [][]models.InlineKeyboardButton{
{
{Text: "Grant", CallbackData: fmt.Sprintf("operation=grant&userID=%d&bot=%s", up.ID, bn.Username)},
{Text: "Deny", CallbackData: fmt.Sprintf("operation=deny&userID=%d&bot=%s", up.ID, bn.Username)},
},
{
{Text: "Ignore", CallbackData: fmt.Sprintf("operation=ignore&userID=%d&bot=%s", up.ID, bn.Username)},
},
},
options := [][]string{
{"Grant", fmt.Sprintf("operation=grant&userID=%d&bot=%s", up.ID, bn.Username)},
{"Deny", fmt.Sprintf("operation=deny&userID=%d&bot=%s", up.ID, bn.Username)},
// {"Deny", fmt.Sprintf("operation=ignore&userID=%d&bot=%s", up.ID, bn.Username)},
}
kbd := KeyboardWithCancel(options, 2, false)
msg.ReplyMarkup = kbd
return msg
}