action

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2023 License: MIT Imports: 20 Imported by: 0

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

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

func (AdaptorTelegramAction) Lesson

func (a AdaptorTelegramAction) Lesson(book model.Book) (string, error)

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 BookSend

type BookSend struct {
	AdaptorTelegramAction
}

func (BookSend) DownloadFile

func (b BookSend) DownloadFile(remoteFilePath string, file *os.File) error

func (BookSend) Keyboard

func (b BookSend) Keyboard(i ...interface{}) interface{}

func (BookSend) Output

func (b BookSend) 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 struct {
	AdaptorTelegramAction
}
func (m MainMenu) Keyboard(i ...interface{}) interface{}
func (m MainMenu) Output(i ...interface{}) (string, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL