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