Documentation ¶
Index ¶
- Constants
- type MainMenu
- type MenuLevel
- type ModMenu
- func (m *ModMenu) SendError(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string)
- func (m *ModMenu) SendMessage(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string, mn *MenuLevel) bool
- func (m *ModMenu) UpdateMessage(message *tgbotapi.Message, bot *tgbotapi.BotAPI, menu *MenuLevel) bool
- type RelayMenu
- func (r *RelayMenu) SendError(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string) bool
- func (r *RelayMenu) SendMessage(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string, mn *MenuLevel) bool
- func (r *RelayMenu) UpdateMessage(message *tgbotapi.Message, bot *tgbotapi.BotAPI, menu *MenuLevel) bool
- type RelaySingleMenu
- func (r *RelaySingleMenu) SendError(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string)
- func (r *RelaySingleMenu) SendMessage(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string, mn *MenuLevel) bool
- func (r *RelaySingleMenu) UpdateMessage(message *tgbotapi.Message, bot *tgbotapi.BotAPI, menu *MenuLevel) bool
Constants ¶
View Source
const ( MainLevel = iota ModLevel RelayLevel )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MainMenu ¶
type MainMenu struct {
// contains filtered or unexported fields
}
MainMenu Main menu struct
func NewMainMenu ¶
func NewMainMenu(log *utils.Log, ath *auth.Authorization) *MainMenu
NewMainMenu make new struct
func (*MainMenu) SendMessage ¶
SendMessage sends message with buttons to user
type MenuLevel ¶
type MenuLevel struct {
// contains filtered or unexported fields
}
func (*MenuLevel) SetBuilding ¶
type ModMenu ¶
type ModMenu struct {
// contains filtered or unexported fields
}
ModMenu Main menu struct
func NewModMenu ¶
func NewModMenu(log *utils.Log, ath *auth.Authorization) *ModMenu
NewModMenu make new struct
type RelayMenu ¶
type RelayMenu struct {
// contains filtered or unexported fields
}
RelayMenu Main menu struct
func NewRelayMenu ¶
func NewRelayMenu(log *utils.Log, ath *auth.Authorization) *RelayMenu
NewRelayMenu make new struct
type RelaySingleMenu ¶
type RelaySingleMenu struct {
// contains filtered or unexported fields
}
RelaySingleMenu Main menu struct
func NewRelaySingleMenu ¶
func NewRelaySingleMenu(log *utils.Log, ath *auth.Authorization) *RelaySingleMenu
NewRelaySingleMenu make new struct
func (*RelaySingleMenu) SendMessage ¶
func (r *RelaySingleMenu) SendMessage(bot *tgbotapi.BotAPI, message *tgbotapi.Message, text string, mn *MenuLevel) bool
SendMessage sends message with buttons to user
func (*RelaySingleMenu) UpdateMessage ¶
func (r *RelaySingleMenu) UpdateMessage(message *tgbotapi.Message, bot *tgbotapi.BotAPI, menu *MenuLevel) bool
UpdateMessage update telegram message
Click to show internal directories.
Click to hide internal directories.