Documentation ¶
Index ¶
- Variables
- func CheckArgs(arg string, options ...string) bool
- func CustomKeyboard(keyboard [][]string, markdown bool) *telebot.SendOptions
- func DateToString(date Date) string
- func FindSpan(typ string, key string, val string, node *html.Node) *html.Node
- func HTTPGet(url string) string
- func HTTPGetAndParse(url string) (*html.Node, error)
- func HTTPGetMin(url string) string
- func HTTPGetMinAndParse(url string) (*html.Node, error)
- func HTTPGetMinStream(url string) (io.Reader, error)
- func HTTPGetStream(url string) (io.Reader, error)
- func Render(node *html.Node) string
- func TimeToString(time Time) string
- func Timestamp() int64
- func TimestampMS() int64
- type Date
- type Time
Constants ¶
This section is empty.
Variables ¶
var Markdown *telebot.SendOptions
Markdown contains the SendOptions for markdown messages
Functions ¶
func CustomKeyboard ¶
func CustomKeyboard(keyboard [][]string, markdown bool) *telebot.SendOptions
CustomKeyboard creates a SendOptions instance with the given custom keyboard.
func FindSpan ¶
FindSpan finds a html element of the given type with the given key-value attribute from the given node
func HTTPGetAndParse ¶
HTTPGetAndParse performs a HTTP GET request on the given URL, parses the output and returns a html.Node pointer
func HTTPGetMin ¶
HTTPGetMin performs a HTTP GET request on the given URL and minifies the output
func HTTPGetMinAndParse ¶
HTTPGetMinAndParse performs a HTTP GET request on the given URL, minifies and parses the output and returns a html.Node pointer
func HTTPGetMinStream ¶
HTTPGetMinStream performs a HTTP GET request on the given URL, minifies the output and returns a io.Reader pointer
func HTTPGetStream ¶
HTTPGetStream performs a HTTP GET request on the given URL and returns a io.Reader pointer
func TimestampMS ¶
func TimestampMS() int64
TimestampMS gets the current UNIX timestamp in milliseconds
Types ¶
type Date ¶
Date contains the year, month and day
func StringToDate ¶
StringToDate converts a string to a date