app

package
v0.0.0-...-76a9b92 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(conf *config.JsonConfig)

Types

type AppClient

type AppClient struct {
	Cli  *tdlib.Client
	Conf *config.JsonConfig
	Cron *cron.Cron
}

func NewClient

func NewClient(conf *config.JsonConfig) *AppClient

NewClient 初始化 bot方法

func (*AppClient) FilterMsg

func (a *AppClient) FilterMsg(index int, conf *config.WebHook)

func (*AppClient) SendMessageByName

func (a *AppClient) SendMessageByName(name string, message string) error

SendMessageByName 给cron的定时发送使用 仅支持文本消息

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL