ADD use of internal keyboard creation
This commit is contained in:
parent
cd51d2df09
commit
0f2ba7af44
@ -186,17 +186,13 @@ ChatID: %d
|
|||||||
}
|
}
|
||||||
|
|
||||||
bn, _ := b.GetMe(context.Background())
|
bn, _ := b.GetMe(context.Background())
|
||||||
kbd := &models.InlineKeyboardMarkup{
|
options := [][]string{
|
||||||
InlineKeyboard: [][]models.InlineKeyboardButton{
|
{"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)},
|
||||||
{Text: "Grant", CallbackData: fmt.Sprintf("operation=grant&userID=%d&bot=%s", up.ID, bn.Username)},
|
// {"Deny", fmt.Sprintf("operation=ignore&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)},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
kbd := KeyboardWithCancel(options, 2, false)
|
||||||
|
|
||||||
msg.ReplyMarkup = kbd
|
msg.ReplyMarkup = kbd
|
||||||
return msg
|
return msg
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user