Documentation ¶
Index ¶
- type ServiceBot
- func (s *ServiceBot) AutoDeleteMsg(chatID int64, msgID int, delay int)
- func (s *ServiceBot) GetAdminUser() string
- func (s *ServiceBot) GetChat() map[int64]*chatInfo
- func (s *ServiceBot) SendMsg(chatID int64, msg string, delete bool, delay int)
- func (s *ServiceBot) Start() error
- func (s *ServiceBot) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceBot ¶
type ServiceBot struct { TouchedFile bool // contains filtered or unexported fields }
func NewServiceBot ¶
func NewServiceBot() *ServiceBot
func (*ServiceBot) AutoDeleteMsg ¶
func (s *ServiceBot) AutoDeleteMsg(chatID int64, msgID int, delay int)
func (*ServiceBot) GetAdminUser ¶
func (s *ServiceBot) GetAdminUser() string
func (*ServiceBot) GetChat ¶
func (s *ServiceBot) GetChat() map[int64]*chatInfo
func (*ServiceBot) SendMsg ¶
func (s *ServiceBot) SendMsg(chatID int64, msg string, delete bool, delay int)
func (*ServiceBot) Start ¶
func (s *ServiceBot) Start() error
func (*ServiceBot) Stop ¶
func (s *ServiceBot) Stop()
Click to show internal directories.
Click to hide internal directories.