Skip to content

Commit

Permalink
WIP: turn to local
Browse files Browse the repository at this point in the history
  • Loading branch information
fanhousanbu authored Mar 16, 2024
1 parent 3d34516 commit df67445
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion telegram/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ var Bot *tb.Bot
// BotStart 机器人启动
func BotStart() {
setting := tb.Settings{
Token: config.TelegramC.BotToken,
Token: func() string {
config.TelegramC.BotToken,
}(),
Updates: 100,
Poller: &tb.LongPoller{Timeout: 10 * time.Second, AllowedUpdates: []string{
"message",
Expand Down

0 comments on commit df67445

Please sign in to comment.