diff --git a/main.go b/main.go index ba336db..b8b18ab 100644 --- a/main.go +++ b/main.go @@ -137,8 +137,9 @@ func main() { go ListenMQ(client, MQTGCmdQueue) go ListenMe(client) - opt := tdlib.OptionValueBoolean - opt.Value = false + opt := tdlib.OptionValueBoolean{ + Value: false, + } _, err = client.SetOption("online", opt) logOnError(err, "SetOption(online)")