#Hi!, I have a problem when getting chats. Sometimes the method client.getChats() gets stuck forever

6 messages · Page 1 of 1 (latest)

dapper wave
#

use await?!

reef lagoon
#

Yes I use await… if not it would not fail xD

dapper wave
#

give me code i will help you by correct way

reef lagoon
#

let chats = await this.client.getChats();

#

thanks

dapper wave
#

ok because its an array contain many values
so you can use either try client.getcontacts()