Commit graph

14 commits

Author SHA1 Message Date
b76463ccc0
chore: enabled isolatedDeclarations 2024-08-18 09:44:26 +03:00
a0ed9c2426
chore: migrate to antfu eslint config (+ reformat) 2024-08-18 07:18:13 +03:00
bb7baf263b
refactor(core)!: extracted some of the default behaviour into middlewares
breaking: global `floodSleepThreshold` and `maxRetryCount` are now configured via middlewares:
```ts
const tg = new TelegramClient({
  network: {
    middlewares: networkMiddlewares.basic({
      floodWaiter: { maxWait: 5000, maxRetries: 5 },
      internalErrors: { maxRetries: 5 }
    })
  }
})
```
2024-07-16 23:30:05 +03:00
c667399b4d
refactor(core): monadic internal handling of rpc errors 2024-07-06 22:10:05 +03:00
a7c7a636cd
chore(core): improved logging 2024-06-25 00:09:00 +03:00
85f6610e09
fix(core): fixed some dangling timers 2024-06-25 00:01:49 +03:00
81f8ea9fd2
fix(core): even more graceful close 2024-06-14 00:45:40 +03:00
86405fae18
fix(core): onError not working
i might be fucking retarded actually
2024-05-30 00:35:52 +03:00
7194132557
fix(core): correctly handle disableUpdates for highlevel client 2024-05-25 14:59:38 +03:00
dc99a9103b
fix(core): onError doesn't register 2024-05-19 20:05:31 +03:00
78457fb158
fix(web): wait for the websocket to close 2024-04-22 19:16:47 +03:00
83746aa460
feat: initial support for connection states 2024-03-12 13:15:27 +03:00
a2739b678c
chore!: started extracting platform-specific stuff into separate packages 2024-03-07 05:35:36 +03:00
c8e026dc03
refactor!: merged client into core + fixed dispatcher for new storage 2024-01-31 19:30:57 +03:00