Documentation ¶
Overview ¶
Package telegram is telegram server.
Index ¶
- func Initialize(ctx context.Context)
- type Type
- func (s *Type) LoadAlertTypes(cfg *dto.QueryCfg) (alerts []*model.AlertTypes, err error)
- func (s *Type) LoadAlertTypesByUser(u *model.Users) (alerts []*model.AlertTypes, err error)
- func (s *Type) LoadUsers(cfg *dto.QueryCfg) (users []*model.Users, err error)
- func (s *Type) LoadUsersByAlertType(a *model.AlertTypes) (users []*model.Users, err error)
- func (s *Type) PleaseRetry(sender *tb.User, msg string)
- func (s *Type) SendMsgToUser(uid int, msg string) (err error)
- func (s *Type) Stop()
- func (s *Type) ValidateTokenForAlertType(token, alertType string) (alert *model.AlertTypes, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
Types ¶
type Type ¶
type Type struct {
// contains filtered or unexported fields
}
Type client
var Instance *Type
func (*Type) LoadAlertTypes ¶
func (*Type) LoadAlertTypesByUser ¶
func (*Type) LoadUsersByAlertType ¶
func (*Type) PleaseRetry ¶
PleaseRetry echo retry
func (*Type) ValidateTokenForAlertType ¶
func (s *Type) ValidateTokenForAlertType(token, alertType string) (alert *model.AlertTypes, err error)
Click to show internal directories.
Click to hide internal directories.