]> git.giacomolli.uk - onechat/blobdiff - daemon.go
Check the width of comment lines
[onechat] / daemon.go
index 137cc6f42a8e833ec5da6a6481847356b20ca565..5c94a4f25daff64fbc3d2339e0451bb46d43edf8 100644 (file)
--- a/daemon.go
+++ b/daemon.go
@@ -353,6 +353,10 @@ func daemonServe(ctx context.Context, listener net.Listener, bot *TelegramBot, w
                return errors.Join(err, listener.Close())
        }
 
+       if bot != nil {
+               l.tools.imageShow.bot = bot
+       }
+
        loops := []*TurnLoop{l}
        for _, child := range children {
                loop, err := child.Loop(nil, func(Event) {