Documentation ¶
Index ¶
- type AwaitingTextProcessorData
- type ProcessData
- type StaticConfiguration
- type StaticProccessStructs
- func (staticData *StaticProccessStructs) GetUserStateCurrentPage(userId int64) int
- func (staticData *StaticProccessStructs) GetUserStateTextProcessor(userId int64) *AwaitingTextProcessorData
- func (staticData *StaticProccessStructs) Init()
- func (staticData *StaticProccessStructs) SetUserStateCurrentPage(userId int64, page int)
- func (staticData *StaticProccessStructs) SetUserStateTextProcessor(userId int64, proessor *AwaitingTextProcessorData)
- type UserState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessData ¶
type ProcessData struct { Static *StaticProccessStructs Command string // first part of command without slash(/) Message string // parameters of command or plain message ChatId int64 UserId int64 }
type StaticConfiguration ¶
type StaticProccessStructs ¶
type StaticProccessStructs struct { Chat chat.Chat Db *database.Database Timers map[int64]time.Time Config *StaticConfiguration Trans i18n.TranslateFunc MakeDialogFn func(string, int64, *StaticProccessStructs) *dialog.Dialog // contains filtered or unexported fields }
func (*StaticProccessStructs) GetUserStateCurrentPage ¶
func (staticData *StaticProccessStructs) GetUserStateCurrentPage(userId int64) int
func (*StaticProccessStructs) GetUserStateTextProcessor ¶
func (staticData *StaticProccessStructs) GetUserStateTextProcessor(userId int64) *AwaitingTextProcessorData
func (*StaticProccessStructs) Init ¶
func (staticData *StaticProccessStructs) Init()
func (*StaticProccessStructs) SetUserStateCurrentPage ¶
func (staticData *StaticProccessStructs) SetUserStateCurrentPage(userId int64, page int)
func (*StaticProccessStructs) SetUserStateTextProcessor ¶
func (staticData *StaticProccessStructs) SetUserStateTextProcessor(userId int64, proessor *AwaitingTextProcessorData)
Click to show internal directories.
Click to hide internal directories.