Documentation ¶
Index ¶
- Constants
- Variables
- func ExtractFavInfo(fields wizard.Fields) (string, *dto.Fav)
- func IsGroup(chat *tgbotapi.Chat) bool
- func PossiblySelfDestroyingReplier(appenv *base.ApplicationEnv, reqenv *base.RequestEnv, msg *tgbotapi.Message) func(string)
- func ReplyPossiblySelfDestroying(appenv *base.ApplicationEnv, msg *tgbotapi.Message, text string, ...)
- func SingleRowInlineKeyboardCustomizer(buttons []tgbotapi.InlineKeyboardButton) func(*tgbotapi.MessageConfig)
- type GroupCommand
- type GroupCommandTrait
Constants ¶
View Source
const ( FieldAlias = "alias" FieldObject = "object" )
Variables ¶
View Source
var CommandScopePrivateAndGroupChats = []base.CommandScope{base.CommandScopeAllPrivateChats, base.CommandScopeAllGroupChats, base.CommandScopeAllChatAdmins}
View Source
var CommandScopePrivateChats = []base.CommandScope{base.CommandScopeAllPrivateChats}
View Source
var MarkdownEscaper = strings.NewReplacer(
"*", "\\*",
"_", "\\_",
"`", "\\`")
Functions ¶
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{}
Click to show internal directories.
Click to hide internal directories.