fb61bdc9f7
chore(client): explicitly separate auth state init and get
2023-12-23 02:18:32 +03:00
391049b86f
fix(client): file download cancellation issues
2023-12-22 23:17:40 +03:00
0bdf778462
chore(client)!: renamed some methods
...
breaking:
- `setProfilePhoto` -> `setMyProfilePhoto`
- `setUsername` -> `setMyUsername`
- `setEmojiStatus` -> `setMyEmojiStatus`
2023-12-21 17:50:55 +03:00
c538c2b059
fix(core): allow storage reset to be async
2023-12-19 23:44:39 +03:00
8e07d7f552
fix(client): do not propagate Conversation updates
2023-12-19 00:13:30 +03:00
c278599612
feat(client): allow disabling updates manager
2023-12-19 00:08:10 +03:00
4f7fd24dd9
chore(core): expose init params in .params
field
2023-12-16 20:00:31 +03:00
886858d9de
refactor(client): isSelfPeer method
2023-12-16 19:10:59 +03:00
712c1e8348
fix(client): added true
assertions to methods returning Bool
2023-12-16 19:00:13 +03:00
69f59ab97e
feat(client): openChat
method
2023-12-16 02:54:06 +03:00
2728166727
refactor(client)!: extracted inline callback query into a separate update
...
breaking: `CallbackQuery` -> `CallbackQuery` and `InlineCallbackQuery`
also removed some redundant fields
2023-12-14 00:34:51 +03:00
e259701837
fix(client): new codegen issues with .run
method
2023-12-13 23:02:04 +03:00
1ce52d66ff
chore(client): reworked codegen, use prototype methods instead of fields
2023-12-13 18:29:54 +03:00
f4ee1f599f
chore(client)!: improved translate* methods
...
breaking: both methods now return `TextWithEntities`
2023-12-11 21:52:48 +03:00
ee9e2e35c4
feat(client): sequential message sending
2023-12-11 01:55:58 +03:00
aaa2875fe1
fix(core): support opting out of -503 resending
2023-12-08 20:33:41 +03:00
8050f8c586
fix(client): use inputMessageCallbackQuery
...
levin said this has better rate-limits, who am i to judge
2023-12-08 04:36:00 +03:00
1cdb75a0a9
feat(client): accept online
as schedule date
2023-12-06 20:15:51 +03:00
9ed587209c
fix(client): use quoteOffset for quotes
2023-12-04 23:37:44 +03:00
78aae6ac78
test: sendText tests
2023-12-03 01:34:58 +03:00
389b3cfae0
fix(client): updateShortSentMessage handling
...
oops
2023-12-02 21:12:16 +03:00
895163c126
chore(client)!: renamed some peer utils
...
breaking: `normalizeToInput*` -> `toInput*`
2023-12-02 19:10:49 +03:00
8b2debb0aa
feat(client): support Story message media
2023-12-02 19:04:18 +03:00
af34f1e5ca
chore(client)!: some MessageMedia fixes
...
breaking: `WebPage#type`: `web_page` -> `webpage` for consistency
2023-12-02 07:26:35 +03:00
e9d6cfc39d
feat(client): getMessageByLink method
2023-12-02 06:08:31 +03:00
392ff5ad2d
feat(client): getSimilarChannels method
2023-12-01 19:52:48 +03:00
c42c629475
feat(client): allow implicit storage usage
2023-11-30 23:53:33 +03:00
b43070e3df
fix(client): wrong missing peer handling
...
im actually very dumb
2023-11-30 20:26:50 +03:00
945872e2fd
fix(client): do not quote simple replies
2023-11-27 14:05:07 +03:00
b25f9dddfa
feat!: support min updates
...
breaking: changed `ITelegramStorage` interface, changed tl schema a bit
2023-11-27 06:33:32 +03:00
8249bd2ea4
feat(client)!: batched queries
...
breaking: getUsers may now return null
2023-11-23 19:11:00 +03:00
6a47889cdb
fix(client): rollback: dont use access_hash=0 for bots
...
apparently it doesn't work well in some cases 🙄
2023-11-17 19:14:07 +03:00
42c3b2c809
test(client): high-level methods and types tests
2023-11-17 00:17:03 +03:00
f525c12f83
fix: auth storage fixes
...
- .reset() no longer resets auth keys by default
- auth keys are stored immediately in sqlite
- update loop fixes for logout
- tests for sqlite storage
likely closes #13 (?)
2023-11-12 07:51:30 +03:00
8204dc86a4
chore: removed dispatcher dep from core (again), improved build script
2023-11-12 01:17:20 +03:00
e0f4b0d7b5
build(deps): removed @types/node and file-type
2023-11-02 19:40:14 +03:00
23a0e69942
refactor: no more parse modes!
2023-11-01 20:24:00 +03:00
73cd1e7dc9
docs: use @default
jsdoc tag
2023-10-29 20:25:06 +03:00
137f1cc81b
fix: pnpm install
...
apparently im dumb
2023-10-29 08:35:44 +03:00
fc42dcb973
feat: updated to layer 166
2023-10-29 08:14:00 +03:00
fdec2b8621
fix: improved surface api
2023-10-29 00:48:37 +03:00
04c702dfd2
fix: improved downloadToFile API
2023-10-27 19:44:40 +03:00
4ac6e439a9
fix: various improvements
2023-10-26 22:23:25 +03:00
c061581abb
chore: various surface api improvements & fixes
2023-10-24 11:49:17 +03:00
15c855df84
fix: more fixes for web
2023-10-21 01:42:27 +03:00
dafe631435
fix: migrated to web streams
2023-10-20 00:41:47 +03:00
Alina Tumanova
f5976a2d74
ESM + end-to-end tests ( #11 )
...
* feat: moved tl-runtime to esm and native ArrayBuffers
* feat: migration to esm
* fix(core): web-related fixes
* test: finally, some good fucking e2e
* chore: fixed linters etc
* ci: added e2e to ci
* build(tl): fixed gen-code on node 20
* fix: codegen Uint8Array, not Buffer
never `git reset --hard` kids
* build: only do type-aware linting for `packages/*`
* build: ignore no-unresolved in ci for e2e
* fix: node 16 doesn't have subtle crypto apparently?
* fix(tests): use Uint8Array
for gods sake please can i just merge this already
* ci: don't parallel tasks in ci
because machines are utter garbage and it may just randomly break
* ci: pass secrets to e2e tests
* ci: separate cli command for ci
apparently im retarded
* fix: run codegen in e2e
im actually retarded
* ci: more fixes for e2e
* ci: debugging stuff
* ci: still debugging
* ci: hopefully fix ci???
2023-10-16 19:23:53 +03:00
337418a34c
feat: contexts
2023-10-11 08:42:37 +03:00
6629d91274
chore: remove remaining MaybeArray flex
2023-10-11 08:42:37 +03:00
3e5b2af7c0
feat: per-method disabling of no-dispatch
2023-10-11 08:42:37 +03:00