Авторизация теперь происходит по новому
This commit is contained in:
parent
35e3d54ea3
commit
e8184e34b8
3
main.go
3
main.go
@ -137,7 +137,8 @@ func main() {
|
|||||||
log.Printf("Initializing Crisp Listner")
|
log.Printf("Initializing Crisp Listner")
|
||||||
client = crisp.New()
|
client = crisp.New()
|
||||||
// Set authentication parameters
|
// Set authentication parameters
|
||||||
client.Authenticate(config.GetString("crisp.identifier"), config.GetString("crisp.key"))
|
// client.Authenticate(config.GetString("crisp.identifier"), config.GetString("crisp.key"))
|
||||||
|
client.AuthenticateTier("plugin", config.GetString("crisp.identifier"), config.GetString("crisp.key"))
|
||||||
|
|
||||||
// Connect to realtime events backend and listen (only to 'message:send' namespace)
|
// Connect to realtime events backend and listen (only to 'message:send' namespace)
|
||||||
client.Events.Listen(
|
client.Events.Listen(
|
||||||
|
Loading…
Reference in New Issue
Block a user