common

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FieldAlias  = "alias"
	FieldObject = "object"
)

Variables

View Source
var CommandScopePrivateChats = []base.CommandScope{base.CommandScopeAllPrivateChats}
View Source
var MarkdownEscaper = strings.NewReplacer(
	"*", "\\*",
	"_", "\\_",
	"`", "\\`")

Functions

func ExtractFavInfo

func ExtractFavInfo(fields wizard.Fields) (string, *dto.Fav)

func IsGroup

func IsGroup(chat *tgbotapi.Chat) bool

func PossiblySelfDestroyingReplier

func PossiblySelfDestroyingReplier(appenv *base.ApplicationEnv, reqenv *base.RequestEnv, msg *tgbotapi.Message) func(string)

func ReplyPossiblySelfDestroying

func ReplyPossiblySelfDestroying(appenv *base.ApplicationEnv, msg *tgbotapi.Message, text string, customizer base.MessageCustomizer)

func SingleRowInlineKeyboardCustomizer

func SingleRowInlineKeyboardCustomizer(buttons []tgbotapi.InlineKeyboardButton) func(*tgbotapi.MessageConfig)

Types

type GroupCommand added in v1.2.2

type GroupCommand interface {
	base.CommandHandler
	// contains filtered or unexported methods
}

type GroupCommandTrait added in v1.2.2

type GroupCommandTrait struct{}

Jump to

Keyboard shortcuts

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