1
0
mirror of https://github.com/fumiama/ReiBot.git synced 2026-06-11 05:30:38 +08:00
This commit is contained in:
源文雨
2022-06-02 14:36:43 +08:00
parent 7c90c8b7d3
commit 8b6817acea
13 changed files with 802 additions and 17 deletions

8
bot.go
View File

@@ -9,13 +9,15 @@ import (
type Bot struct {
// Token bot 的 token
// see https://core.telegram.org/bots#3-how-do-i-create-a-bot
Token string `json:"token"`
Token string
// Buffer 控制消息队列的长度
Buffer int `json:"buffer"`
Buffer int
// UpdateConfig 配置消息获取
tgba.UpdateConfig
// SuperUsers 超级用户
SuperUsers []int64
// Debug 控制调试信息的输出与否
Debug bool `json:"debug"`
Debug bool
// Handler 注册对各种事件的处理
Handler *Handler
// handlers 方便调用的 handler