16 lines
383 B
Go
16 lines
383 B
Go
package utils
|
|
|
|
import (
|
|
"github.com/nicksnyder/go-i18n/i18n"
|
|
tg "gitlab.com/toby3d/telegram"
|
|
)
|
|
|
|
// SwitchButton helper just generate ReplyMarkup with SelfSwitch button
|
|
func SwitchButton(t i18n.TranslateFunc) *tg.InlineKeyboardMarkup {
|
|
return tg.NewInlineKeyboardMarkup(
|
|
tg.NewInlineKeyboardRow(
|
|
tg.NewInlineKeyboardButtonSwitchSelf(t("button_inline_select"), " "),
|
|
),
|
|
)
|
|
}
|