|
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 |
|