Documentation ¶
Index ¶
Constants ¶
View Source
const MarkDownParseMode = "markdown"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandHandler ¶
type CommandHandler interface { HandleAddCategory(message *tgbotapi.Message) error HandleRemoveCategory(message *tgbotapi.Message) error HandleRenameCategory(message *tgbotapi.Message) error HandleListCategories(message *tgbotapi.Message) error HandleAddNote(message *tgbotapi.Message) error HandleRemoveNotes(message *tgbotapi.Message) error HandleListNotes(message *tgbotapi.Message) error HandleListAllNotes(message *tgbotapi.Message) error HandleStart(message *tgbotapi.Message) error }
type Deps ¶
type Deps struct { Ctx context.Context Bot *tgbotapi.BotAPI Services *services.Services Logger services.Logger Messages config.Messages CommandHandler CommandHandler QueryHandler QueryHandler InteractionHandler InteractionHandler Helper handlers.TelegramHandlerHelper }
type InteractionHandler ¶
type QueryHandler ¶
type QueryHandler interface { HandleRemoveCategory(chatID int64, category string) error HandleSelectCategoryToBeRenamed(chatID int64, category string) error HandleAddNote(chatID int64, args []string) error HandleListNotesToRemoveInCategory(chatID int64, category string) error HandleRemoveNotes(chatID int64, args []string) error HandleListNotes(chatID int64, category string) error }
Click to show internal directories.
Click to hide internal directories.