Documentation
¶
Index ¶
Constants ¶
View Source
const ( // for close InlineBtnCloseUniq = "close" InlineBtnCloseText = "× Close" // for back InlineBtnBackUniq = "back" InlineBtnBackText = "‹ Back" )
View Source
const (
PhotoDirPath = "./static/tg/"
)
Variables ¶
View Source
var (
ErrFileIdNotFound = errors.New("file id not found")
)
Errors
Functions ¶
Types ¶
type InlineButton ¶
type InlineButton struct {
telebot.InlineButton
}
func NewBackInlineButton ¶
func NewBackInlineButton(c telebot.Context) *InlineButton
Create new back inline button.
func NewCloseInlineButton ¶
func NewCloseInlineButton(c telebot.Context) *InlineButton
Create new close inline button.
func NewNavInlineButton ¶
func NewNavInlineButton(c telebot.Context) *InlineButton
Create default navigation inline button.
func (*InlineButton) Extract ¶
func (ib *InlineButton) Extract() telebot.InlineButton
Extract inline button
func (*InlineButton) SetData ¶
func (ib *InlineButton) SetData(data string) *InlineButton
Set data of inline button.
func (*InlineButton) SetText ¶
func (ib *InlineButton) SetText(text string) *InlineButton
Set text of inline button.
func (*InlineButton) SetUnique ¶
func (ib *InlineButton) SetUnique(unique string) *InlineButton
Set unique of inline button.
Click to show internal directories.
Click to hide internal directories.