Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type BotIO ¶
type BotIO struct {
// contains filtered or unexported fields
}
func (*BotIO) PrintButtons ¶
func (io *BotIO) PrintButtons(text string, buttons []*io.ButtonData) error
type BotWorker ¶
type BotWorker struct {
// contains filtered or unexported fields
}
func NewBotWorker ¶
func NewBotWorker(logger *zap.SugaredLogger, c *config.ServiceConfig, r *rdb.Rdb, db *pgsql.Db, ws *WebhookServer) *BotWorker
type WebhookServer ¶
type WebhookServer struct {
// contains filtered or unexported fields
}
func NewWebhookServer ¶
func NewWebhookServer(logger *zap.SugaredLogger, c *config.ServiceConfig) *WebhookServer
func (*WebhookServer) RegisterBot ¶
func (w *WebhookServer) RegisterBot(path string, handler telego.WebhookHandler) error
func (*WebhookServer) RemoveBot ¶
func (w *WebhookServer) RemoveBot(botId int64)
func (*WebhookServer) Shutdown ¶
func (w *WebhookServer) Shutdown() error
func (*WebhookServer) Start ¶
func (w *WebhookServer) Start() error
Click to show internal directories.
Click to hide internal directories.