Documentation
¶
Index ¶
- Variables
- func NewRemakeBot(lc fx.Lifecycle, logger *zap.Logger) *tele.Bot
- type Country
- type Handler
- func (h *Handler) CommandMsgStats(c tele.Context) error
- func (h *Handler) CommandOnSticker(c tele.Context) error
- func (h *Handler) CommandOnText(c tele.Context) error
- func (h *Handler) CommandRemake(c tele.Context) error
- func (h *Handler) CommandRemakeData(c tele.Context) error
- func (h *Handler) InlineQuery(c tele.Context) error
- func (h *Handler) RegisterAll()
- type MessageCounter
- type Remake
- type RemakeData
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) RegisterAll ¶
func (h *Handler) RegisterAll()
type MessageCounter ¶
type MessageCounter struct {
// contains filtered or unexported fields
}
func NewMessageCounter ¶
func NewMessageCounter(db *sql.DB) *MessageCounter
func (*MessageCounter) GetTopUserInLast24Hours ¶
func (mc *MessageCounter) GetTopUserInLast24Hours() (int64, int, error)
func (*MessageCounter) Increment ¶
func (mc *MessageCounter) Increment(telegramID int64) error
type Remake ¶
type Remake struct {
CountryList []Country
TotalPopulation int64
RemakeCount map[int64]*RemakeData
}
type RemakeData ¶
type RemakeData struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.