startchat: don't allow spamming get contact list request
This commit is contained in:
@@ -102,6 +102,8 @@ type TelegramClient struct {
|
||||
|
||||
cachedContacts *tg.ContactsContacts
|
||||
cachedContactsHash int64
|
||||
contactsLock sync.Mutex
|
||||
lastContactReq time.Time
|
||||
|
||||
takeoutLock sync.Mutex
|
||||
takeoutAccepted *exsync.Event
|
||||
|
||||
Reference in New Issue
Block a user