Documentation ¶
Index ¶
- Constants
- type Config
- type ConfigFunc
- type Handler
- func (h *Handler) Bot() *tgbotapi.BotAPI
- func (h *Handler) Cache() cache.Cache
- func (h *Handler) HandleCallback(CallbackQuery *tgbotapi.CallbackQuery)
- func (h *Handler) HandleCmd(Message tgbotapi.Message)
- func (h *Handler) HandleMsg(Message *tgbotapi.Message)
- func (h *Handler) Run(ctx context.Context)
- func (h *Handler) SetCommand()
- func (h *Handler) WebhookEnabled() bool
- func (h *Handler) WebhookHandler() func(w http.ResponseWriter, r *http.Request)
- func (h *Handler) WebhookUriPath() string
Constants ¶
View Source
const (
GuestImgMaxSize = 737280
)
View Source
const MAXONEPAGEOBJ = MAXROW * 7
View Source
const MAXROW = 3
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { api.DrawConfig `yaml:",inline"` PrePhotoID string `json:"pre_photo_id,omitempty" yaml:"pre_photo_id,omitempty"` ControlPhotoID string `json:"control_photo_id,omitempty" yaml:"control_photo_id,omitempty"` }
func (*Config) CorrectCfg ¶
func (*Config) Fomate2TgHTML ¶
func (*Config) Fomate2TgMdV2 ¶
type ConfigFunc ¶ added in v0.2.0
type ConfigFunc func(h *Handler)
func WithCache ¶ added in v0.2.0
func WithCache(cache cache.Cache) ConfigFunc
func WithOwnerID ¶ added in v0.2.0
func WithOwnerID(id int64) ConfigFunc
type Handler ¶ added in v0.2.0
type Handler struct {
// contains filtered or unexported fields
}
func (*Handler) HandleCallback ¶ added in v0.2.0
func (h *Handler) HandleCallback(CallbackQuery *tgbotapi.CallbackQuery)
func (*Handler) SetCommand ¶ added in v0.2.0
func (h *Handler) SetCommand()
func (*Handler) WebhookEnabled ¶ added in v0.2.0
func (*Handler) WebhookHandler ¶ added in v0.2.0
func (h *Handler) WebhookHandler() func(w http.ResponseWriter, r *http.Request)
only Enable Webhook
func (*Handler) WebhookUriPath ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.