helpers

package
v0.0.0-...-704a55d Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MaxMessageLength = 4096

Functions

func BuildKeyboard

func BuildKeyboard(buttons []sql.Button) [][]ext.InlineKeyboardButton

func BuildWelcomeKeyboard

func BuildWelcomeKeyboard(buttons []sql.WelcomeButton) [][]ext.InlineKeyboardButton

func Contains

func Contains(arr []string, str string) bool

func GetNoteType

func GetNoteType(msg *ext.Message) (string, string, int, string, []tg_md2html.Button)

func GetWelcomeType

func GetWelcomeType(msg *ext.Message) (string, int, string, []tg_md2html.Button)

func MentionHtml

func MentionHtml(userId int, name string) string

func RemoveEscapes

func RemoveEscapes(text string) string

func RevertButtons

func RevertButtons(buttons []sql.WelcomeButton) string

func SplitMessage

func SplitMessage(msg string) []string

func SplitQuotes

func SplitQuotes(text 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