Файли
2026-11-08 03:46:11 +00:00

23 рядки
631 B
Go

package shared
import (
"github.com/mymmrac/telego"
tu "github.com/mymmrac/telego/telegoutil"
)
// MyListsLabel is both the reply-keyboard button text and the message text
// Telegram sends when that button is pressed.
const MyListsLabel = "My lists"
// MainKeyboard is the persistent keyboard shown below the input field. Reply
// keyboards are chat-wide, so sending it once keeps the button available.
func MainKeyboard() *telego.ReplyKeyboardMarkup {
return &telego.ReplyKeyboardMarkup{
Keyboard: [][]telego.KeyboardButton{
{tu.KeyboardButton(MyListsLabel)},
},
IsPersistent: true,
ResizeKeyboard: true,
}
}