bot

package
v0.0.0-...-90ef764 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

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 Clean

func Clean() string

func Fetch

func Fetch(input string) string

func GetUpdateHelp

func GetUpdateHelp() string

func Help

func Help() string

func IsValidInput

func IsValidInput(message *tgbotapi.Message) bool

func New

func New(input string) string

func Publish

func Publish(input string) string

func Push

func Push(input string) string

func PushReply

func PushReply(input string) string

func Reply

func Reply(message *tgbotapi.Message) string

func SanitizeInput

func SanitizeInput(input string) string

func Show

func Show(input string) string

func Update

func Update(input string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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