Documentation ¶
Index ¶
- Constants
- Variables
- func Clean() string
- func Fetch(input string) string
- func GetUpdateHelp() string
- func Help() string
- func IsValidInput(message *tgbotapi.Message) bool
- func New(input string) string
- func Publish(input string) string
- func Push(input string) string
- func PushReply(input string) string
- func Reply(message *tgbotapi.Message) string
- func SanitizeInput(input string) string
- func Show(input string) string
- func Update(input string) string
Constants ¶
View Source
const ( PUSH = "push" FETCH = "fetch" CLEAN = "clean" EDIT = "edit" SHOW = "show" TITLE = "title" SOURCE = "source" CATEGORY = "category" LOCATION = "location" LINK = "link" DATE = "date" CONTENT = "content" NEW = "new" HELP = "help" PUBLISH = "publish" )
Variables ¶
View Source
var Categories = []string{
"warming",
"agreements",
"assessment",
"awareness",
"wildfires",
"floods",
"drought",
"health",
"hurricane",
"pollution",
}
View Source
var Sources = []string{
"air",
"climate",
"effects",
"drought",
"floods",
"greenhouse",
"heatwave",
"hurricanes",
"wildfires",
"deforestation",
"warming",
"oceans",
}
Functions ¶
func GetUpdateHelp ¶
func GetUpdateHelp() string
func IsValidInput ¶
func SanitizeInput ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.