Documentation ¶
Index ¶
- Constants
- Variables
- func Init(conf ConfigTemplate)
- func InitWebAppServer()
- func Recover(onError ...func(error)) tele.MiddlewareFunc
- type ConfigTemplate
- type LineStickerQ
- type StickerData
- type StickerDownloadObject
- type StickerFile
- type StickerMoveObject
- type UserData
- type UserStickerQ
- type Users
- type WebAppUser
Constants ¶
View Source
const ( CB_DN_WHOLE = "dall" CB_DN_SINGLE = "dsingle" CB_OK_IMPORT = "yesimport" CB_OK_DN = "yesd" CB_BYE = "bye" CB_MANAGE = "manage" CB_DONE_ADDING = "done" CB_YES = "yes" CB_NO = "no" CB_DEFAULT_TITLE = "titledefault" CB_EXPORT_WA = "exportwa" CB_ADD_STICKER = "adds" CB_DELETE_STICKER = "dels" CB_DELETE_STICKER_SET = "delss" CB_CHANGE_TITLE = "changetitle" ST_WAIT_WEBAPP = "waitWebApp" ST_PROCESSING = "process" FID_KAKAO_SHARE_LINK = "AgACAgEAAxkBAAEjezVj3_YXwaQ8DM-107IzlLSaXyG6yAACfKsxG3z7wEadGGF_gJrcnAEAAwIAA3kAAy4E" LINK_TG = "t.me" LINK_LINE = "line.me" LINK_KAKAO = "kakao.com" LINK_IMPORT = "IMPORT" )
View Source
const DB_VER = "2"
Variables ¶
View Source
var BOT_VERSION = "2.3.12-GO"
Functions ¶
func Init ¶
func Init(conf ConfigTemplate)
func InitWebAppServer ¶
func InitWebAppServer()
func Recover ¶
func Recover(onError ...func(error)) tele.MiddlewareFunc
Recover returns a middleware that recovers a panic happened in the handler.
Types ¶
type ConfigTemplate ¶
type ConfigTemplate struct { AdminUid int64 DataDir string LogLevel string UseDB bool BotToken string WebApp bool WebappUrl string WebappApiUrl string WebappListenAddr string WebappDataDir string DbAddr string DbUser string DbPass string BotApiAddr string BotApiDir string WebhookPublicAddr string WebhookListenAddr string // WebhookCert string WebhookSecretToken string }
type LineStickerQ ¶
type StickerData ¶
type StickerData struct {
// contains filtered or unexported fields
}
type StickerDownloadObject ¶
type StickerDownloadObject struct {
// contains filtered or unexported fields
}
type StickerFile ¶
type StickerFile struct {
// contains filtered or unexported fields
}
type StickerMoveObject ¶
type StickerMoveObject struct {
// contains filtered or unexported fields
}
type UserStickerQ ¶
type UserStickerQ struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.