69eda9decb
fix(core): serialize longs from port to worker
2024-07-17 19:22:10 +03:00
03c2d453e4
v0.16.0
2024-07-16 21:40:32 +00:00
alina sireneva
fd6709daec
feat(core): network middlewares ( #60 )
...
allow intercepting, modifying and early responding to outgoing requests
this is a basis for many previously impossible use-cases, including a
global rpc error handler, client-level request caching and more granular
control over request delaying
2024-07-16 14:17:53 -07: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
c5438a2f29
feat(core): outgoing request middlewares
2024-07-16 23:00:02 +03:00
4f3295b8a7
chore: removed pre-commit hooks
2024-07-16 22:59:36 +03:00
alina sireneva
5a500020aa
fix(core): serializing Longs between worker and port ( #63 )
2024-07-15 23:30:40 +03:00
134dc8371f
fix(core): serializing Longs between worker and port
2024-07-15 23:12:57 +03:00
d4d3f1becc
chore(core): improved error logging
2024-07-12 17:54:52 +03:00
alina sireneva
1ca3348dc6
fix(deno): return number
s from sqlite driver ( #62 )
2024-07-12 17:46:09 +03:00
8eb980c689
fix(deno): return number
s from sqlite driver
2024-07-12 16:18:12 +03:00
1b1ad3a0f7
fix(core)!: correctly type Dialog.isMuted
2024-07-08 13:55:45 +03:00
0ebd305797
feat(tl): updated to layer 184
2024-07-08 13:55:45 +03:00
a110ad2ce7
fix(core): fixed chains logging
2024-07-08 13:55:44 +03:00
aa604e4d98
chore(core): lowered default log level to warning
2024-07-08 13:55:39 +03:00
2c15653cdb
v0.15.3
2024-07-07 18:18:43 +00:00
520bcadbf8
fix(core): do not retry all errors
2024-07-07 21:02:10 +03:00
4209aebe80
v0.15.2
2024-07-06 19:30:43 +00:00
9b6e5ea8fc
fix(dispatcher): CallbackDataBuilder#filter
typings
2024-07-06 22:12:13 +03:00
c667399b4d
refactor(core): monadic internal handling of rpc errors
2024-07-06 22:10:05 +03:00
e432fdb5b3
feat(core): onQrScanned callback in signInQr
2024-07-01 20:27:47 +03:00
0290bb429a
fix(core): abort signal with workers
2024-07-01 12:07:15 +03:00
a78610af5f
v0.15.1
2024-06-30 23:46:48 +00:00
b3b29a1c67
fix(node): improved exit hook
2024-07-01 02:21:12 +03:00
e22571b7c1
fix(core): allow removing caption when editing
2024-07-01 00:35:30 +03:00
53b9ea8840
v0.15.0
2024-06-30 20:54:26 +00:00
4d9e089643
fix(core): gracefully handle wrong password in qr login
2024-06-30 23:07:11 +03:00
323bdb2ad9
feat(core): support paid media
2024-06-30 22:58:48 +03:00
55f3e535c2
fix(core): correctly expose appConfig in TelegramClient
2024-06-30 22:43:03 +03:00
35d2aebd34
feat(tl): updated to layer 183
2024-06-30 22:16:23 +03:00
e2464f7f3f
feat(core): qr code login
2024-06-28 17:30:47 +03:00
9daa551e33
fix(core): correctly handle result of mtcute.customMethod
2024-06-28 14:59:26 +03:00
c536086310
chore(core): added logs for key-change failure
2024-06-28 14:11:22 +03:00
1b5760b3fc
chore(web): inlined iterator
2024-06-28 14:08:45 +03:00
8df4c1a6b5
build: added some meta in package.json
2024-06-28 00:38:42 +03:00
28b2efbb08
fix(core): round value in randomBigIntInRange
2024-06-27 23:44:32 +03:00
82ab154f0f
v0.14.0
2024-06-26 10:02:31 +00:00
fe1047df8b
feat(core): allow sending fully custom payloads
2024-06-26 11:22:08 +03:00
66d5862bdb
feat(core): allow overriding number of main connections
2024-06-26 11:19:33 +03:00
34643ffe89
fix(core): correctly handle rpc_error for methods returning vectors of primitives
2024-06-26 00:39:06 +03:00
1133d1279d
test(e2e): fixed some flakiness
2024-06-26 00:09:40 +03:00
ecad89b70d
feat(core): support business callback queries
2024-06-25 01:19:29 +03:00
80097fa8be
build(tl): updated to 182 layer
2024-06-25 00:50:38 +03:00
470b6ca635
fix(core): improved error when trying to use peers before starting the client
2024-06-25 00:14:19 +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
93c44412e6
chore(core): improved flood_wait log message
2024-06-24 23:33:20 +03:00
34016f849b
fix(core): silently fail on AUTH_KEY_UNREGISTERED in updates.getState
2024-06-24 17:49:49 +03:00
64da48926f
feat(create-bot): various improvements
...
- improved bun support
- deno support
- use antfu/eslint-config
- fixed some issues
- removed pre-commit hooks
2024-06-24 17:49:47 +03:00
7f7f513bc8
docs(core): improved deleteHistory
docs
2024-06-23 21:03:00 +03:00