Documentation
¶
Index ¶
Constants ¶
View Source
const BackToMainMenu = "Головне меню"
View Source
const DisplayStatisticButton = "Показати статистику"
View Source
const DoNothing = "Слідкуй за інструкцією ^"
View Source
const NextLesson = "Наступне завдання"
View Source
const OpenLibrary = "Відкрити бібліотеку"
View Source
const StartRegistration = "Почати реєстрацію"
View Source
const StartStudy = "Навчатись"
View Source
const UploadBook = "Завантажити книжку"
Variables ¶
View Source
var AfterRegistrationButton = tg.NewOneTimeReplyKeyboard( tg.NewKeyboardButtonRow( tg.NewKeyboardButton(UploadBook), ), tg.NewKeyboardButtonRow( tg.NewKeyboardButton(OpenLibrary), ), )
View Source
var BackToMainMenuButton = tg.NewReplyKeyboard( tg.NewKeyboardButtonRow( tg.NewKeyboardButton(BackToMainMenu), ), )
View Source
var DoNothingButton = tg.NewReplyKeyboard( tg.NewKeyboardButtonRow( tg.NewKeyboardButton(DoNothing), ), tg.NewKeyboardButtonRow( tg.NewKeyboardButton(BackToMainMenu), ), )
View Source
var MainMenuButton = tg.NewReplyKeyboard( tg.NewKeyboardButtonRow( tg.NewKeyboardButton(StartStudy), ), tg.NewKeyboardButtonRow( tg.NewKeyboardButton(OpenLibrary), tg.NewKeyboardButton(UploadBook), ), tg.NewKeyboardButtonRow( tg.NewKeyboardButton(DisplayStatisticButton), ), )
View Source
var NextLessonButton = tg.NewOneTimeReplyKeyboard( tg.NewKeyboardButtonRow( tg.NewKeyboardButton(NextLesson), ), tg.NewKeyboardButtonRow( tg.NewKeyboardButton(BackToMainMenu), ), )
View Source
var SendPhoneButton = tg.NewOneTimeReplyKeyboard( tg.NewKeyboardButtonRow( tg.NewKeyboardButtonContact(StartRegistration), ), )
View Source
var StartStudyButton = tg.NewOneTimeReplyKeyboard( tg.NewKeyboardButtonRow( tg.NewKeyboardButton(StartStudy), ), )
Functions ¶
This section is empty.
Types ¶
type AdaptorTelegramAction ¶
type AdaptorTelegramAction struct {
BaseAction
}
func (AdaptorTelegramAction) GetBotAPI ¶
func (a AdaptorTelegramAction) GetBotAPI() *tgbotapi.BotAPI
func (AdaptorTelegramAction) GetUpdate ¶
func (a AdaptorTelegramAction) GetUpdate() *tgbotapi.Update
type BaseAction ¶
type BaseAction struct { ChatID int64 Data interface{} Bot interface{} }
func (BaseAction) GetBot ¶
func (u BaseAction) GetBot() interface{}
func (BaseAction) GetChat ¶
func (u BaseAction) GetChat() int64
func (BaseAction) GetData ¶
func (u BaseAction) GetData() interface{}
func (*BaseAction) SetBot ¶
func (u *BaseAction) SetBot(i interface{})
func (*BaseAction) SetChat ¶
func (u *BaseAction) SetChat(i int64)
func (*BaseAction) SetData ¶
func (u *BaseAction) SetData(i interface{})
type BookChoose ¶
type BookChoose struct {
AdaptorTelegramAction
}
func (BookChoose) Keyboard ¶
func (b BookChoose) Keyboard(i ...interface{}) interface{}
func (BookChoose) Output ¶
func (b BookChoose) Output(i ...interface{}) (string, error)
type BookLibrary ¶
type BookLibrary struct {
AdaptorTelegramAction
}
func (BookLibrary) GetInlineButton ¶
func (BookLibrary) GetInlineButton(id uint) interface{}
func (BookLibrary) Keyboard ¶
func (b BookLibrary) Keyboard(i ...interface{}) interface{}
func (BookLibrary) Output ¶
func (b BookLibrary) Output(i ...interface{}) (string, error)
type BookUpload ¶
type BookUpload struct {
BaseAction
}
func (BookUpload) Keyboard ¶
func (b BookUpload) Keyboard(i ...interface{}) interface{}
func (BookUpload) Output ¶
func (b BookUpload) Output(i ...interface{}) (string, error)
type DisplayStatistic ¶
type DisplayStatistic struct {
AdaptorTelegramAction
}
func (DisplayStatistic) Keyboard ¶
func (d DisplayStatistic) Keyboard(i ...interface{}) interface{}
func (DisplayStatistic) Output ¶
func (d DisplayStatistic) Output(i ...interface{}) (string, error)
type MainMenu ¶
type MainMenu struct {
AdaptorTelegramAction
}
type PollAnswer ¶
type PollAnswer struct {
AdaptorTelegramAction
}
func (PollAnswer) Keyboard ¶
func (p PollAnswer) Keyboard(i ...interface{}) interface{}
func (PollAnswer) Output ¶
func (p PollAnswer) Output(i ...interface{}) (string, error)
type StartHandler ¶
type StartHandler struct {
AdaptorTelegramAction
}
func (StartHandler) Keyboard ¶
func (s StartHandler) Keyboard(i ...interface{}) interface{}
func (StartHandler) Output ¶
func (s StartHandler) Output(i ...interface{}) (string, error)
type StudyStart ¶
type StudyStart struct {
AdaptorTelegramAction
}
func (StudyStart) Keyboard ¶
func (s StudyStart) Keyboard(i ...interface{}) interface{}
func (StudyStart) Output ¶
func (s StudyStart) Output(i ...interface{}) (string, error)
type UserAskEmail ¶
type UserAskEmail struct {
AdaptorTelegramAction
}
func (UserAskEmail) Keyboard ¶
func (u UserAskEmail) Keyboard(i ...interface{}) interface{}
func (UserAskEmail) Output ¶
func (u UserAskEmail) Output(i ...interface{}) (string, error)
type UserAskPhone ¶
type UserAskPhone struct {
AdaptorTelegramAction
}
func (UserAskPhone) Keyboard ¶
func (u UserAskPhone) Keyboard(i ...interface{}) interface{}
func (UserAskPhone) Output ¶
func (u UserAskPhone) Output(i ...interface{}) (string, error)
Click to show internal directories.
Click to hide internal directories.