func (Aria2Notifier) OnDownloadError(events []rpc.Event) {
	log.Printf(locText("onDownloadErrorDes"), events)
	SuddenMessageChan <- fmt.Sprintf(locText("onDownloadErrorDes"), events)
}
OnDownloadError will be sent when a download is stopped due to an error. The event is the same struct as the event argument of onDownloadStart() method.
package main
import (
	"fmt"
	"log"
	"DownloadBot/src/rpc"
)
type Config struct {
	Aria2Server    string `json:"aria2-server"`
	Aria2Key       string `json:"aria2-key"`
	BotKey         string `json:"bot-key"`
	UserID         string `json:"user-id"`
	MaxIndex       int    `json:"max-index"`
	Sign           string `json:"sign"`
	Language       string `json:"language"`
	DownloadFolder string `json:"downloadFolder"`
	MoveFolder     string `json:"moveFolder"`
}
type Aria2DownloadMode struct {
	TMMode string
}
type FilesInlineKeyboards struct {
	GidAndName []map[string]string
	Data       string
}
type FunctionInlineKeyboards struct {
	Describe string
	Data     string
}
type Aria2Notifier struct{}
func (Aria2Notifier) OnDownloadStart(events []rpc.Event) {
	log.Printf(locText("onDownloadStartDes"), events)
	SuddenMessageChan <- fmt.Sprintf(locText("onDownloadStartDes"), events)
	TMMessageChan <- events[0].Gid
}
func (Aria2Notifier) OnDownloadPause(events []rpc.Event) {
	log.Printf(locText("onDownloadPauseDes"), events)
	SuddenMessageChan <- fmt.Sprintf(locText("onDownloadPauseDes"), events)
}
func (Aria2Notifier) OnDownloadStop(events []rpc.Event) {
	log.Printf(locText("onDownloadStopDes"), events)
	SuddenMessageChan <- fmt.Sprintf(locText("onDownloadStopDes"), events)
}
func (Aria2Notifier) OnDownloadComplete(events []rpc.Event) {
	log.Printf(locText("onDownloadCompleteDes"), events)
	SuddenMessageChan <- fmt.Sprintf(locText("onDownloadCompleteDes"), events)
}