Documentation ¶
Index ¶
Constants ¶
View Source
const ( StartCommand = "start" AddCategoryCommand = "addcategory" RemoveCategoryCommand = "removecategory" RenameCategoryCommand = "renamecategory" ListCategoriesCommand = "listcategories" AddNoteCommand = "addnote" RemoveNotesCommand = "removenotes" ListNotes = "listnotes" ListAllNotes = "all" // CallbackQuery. RemoveNotesChooseCategoryCallbackQuery = "removenoteschoosecategory" ListNotesChooseCategoryCallbackQuery = "listnoteschoosecategory" SelectCategoriesToBeRenamed = "selectcategoriestoberenamed" SpecialDelimeterInQueryCallback = "_#_" )
View Source
const ( AddCategoryInteraction = iota + 1 RenameCategoryInteraction )
Do not change the current numbers of these constants.
Variables ¶
View Source
var ( ErrNotFound = errors.New("404 Not Found") ErrServerError = errors.New("500 Server Error") ErrInvalidCategoryName = errors.New("category name can't contain these symbols _`[*~ and be more than 30 symbols") ErrInvalidNoteContent = errors.New("note can't contain these symbols _`[*~ and be more than 200 symbols") ErrCategoryExists = errors.New("category already exists") ErrWrongCallbackQueryData = errors.New("wrong callback query data") )
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.