Commit graph

1030 commits

Author SHA1 Message Date
f0a63f3301 v0.12.2 2024-05-25 12:34:46 +00:00
7194132557
fix(core): correctly handle disableUpdates for highlevel client 2024-05-25 14:59:38 +03:00
1c0bbcdb0c v0.12.1 2024-05-20 09:22:38 +00:00
e3fc079f05
fix(core): emit error on -404 2024-05-19 20:05:32 +03:00
dc99a9103b
fix(core): onError doesn't register 2024-05-19 20:05:31 +03:00
bb722883a3 v0.12.0 2024-05-10 01:27:30 +00:00
86fefbfc02
fix(core): groupedIdUnique is always non-null 2024-05-06 17:56:38 +03:00
82b1552468
feat(dispatcher): filter for scheduled messages 2024-05-06 03:41:02 +03:00
47e1cde585
feat(core): getAllScheduledMessages method 2024-05-06 03:36:21 +03:00
f877e97d34
feat(core): added missing fields to Message 2024-05-06 03:35:22 +03:00
2a399532a3
feat: support business connections 2024-05-06 03:12:33 +03:00
c021f64ed0
fix(core): inspect longs as strings 2024-05-05 21:00:32 +03:00
e9d5158451
feat(core): getCollectibleInfo method 2024-05-05 20:59:03 +03:00
e8a09ec270
feat(core): broadcast_only flag for searchGlobal 2024-05-05 20:56:52 +03:00
00da6736e6
feat(core): new stickers features 2024-05-05 20:56:23 +03:00
756b99e12f
feat(core): support Telegram Business and some other new features 2024-05-05 19:38:51 +03:00
a414ea9425
feat(core): basic support for quick replies 2024-05-05 18:56:44 +03:00
de8033e6d2
chore(core)!: moved full-specific fields to FullChat
breaking: `Chat` constructor signature changed. also removed some fields from`Chat`, but any code depending on them would be incorrect anyway
2024-05-04 06:07:06 +03:00
8b80a3ddbe
build: updated to 179 layer 2024-05-03 05:30:14 +03:00
0b97e79c47
feat(dispatcher): allow injecting multiple deps at once 2024-05-01 23:02:16 +03:00
f277bbc41c
build(ts): disable stripInternal 2024-05-01 22:39:05 +03:00
8baacc701c
feat(dispatcher): dependency injection 2024-05-01 22:33:46 +03:00
ad9ad041ab
test(e2e-deno): ported tests from e2e-node 2024-04-30 05:34:43 +03:00
ac398e657a
test(e2e-deno): use @mtcute/deno in tests 2024-04-29 22:09:56 +03:00
dc56deb08a
fix: check for listener count before emitting error 2024-04-29 18:09:56 +03:00
33515169ff
fix(deno): lazily import @db/sqlite 2024-04-29 17:44:00 +03:00
341e8e9d3e
docs: fixed some namings 2024-04-29 16:42:58 +03:00
67b290643d
build: use a stripped down non-conflicting version of lib.deno.d.ts instead 2024-04-29 05:50:18 +03:00
b1b79e2ab1
test(e2e-deno): populate packages from upstream 2024-04-29 04:56:32 +03:00
a2cdc73735
feat: initial deno support 2024-04-28 23:06:33 +03:00
2bc9f898e5
chore: removed main field from package.json-s 2024-04-27 12:19:09 +03:00
365369be95
fix(node)!: recursive crypto-node import
breaking: moved `NodeCryptoProvider` to @mtcute/node/utils.js
2024-04-27 12:19:08 +03:00
c3c7d1ddce
build: added deprecation notice to commonjs builds 2024-04-27 12:19:08 +03:00
9389cf8b5f
chore(i18n)!: export plurals from index
breaking: `@mtcute/i18n/*` imports are now all in `@mtcute/i18n`
2024-04-27 12:19:08 +03:00
03a156e9a8
feat(crypto-node): prebuilts for arm 2024-04-27 12:19:07 +03:00
d84a946411
build(node): bumped better-sqlite3 2024-04-27 12:19:07 +03:00
4ab7f4baa8
test: consider Buffers equal to Uint8Arrays 2024-04-27 12:19:07 +03:00
b418577bfa
refactor(test): refactored and improved deno/bun vitest polyfills a bit 2024-04-27 12:19:07 +03:00
641df422cc
test(unit): running unit tests under deno 2024-04-27 12:19:05 +03:00
20e27070dc
fix(dispatcher): pubilc constructor for WizardScene 2024-04-27 01:44:11 +03:00
5de055faba v0.11.0 2024-04-24 14:02:31 +00:00
1720433882
fix(bun): correctly handle BunFiles 2024-04-24 14:27:18 +03:00
44a60360ab
fix(core): normalizeInputMedia should respect uploaded file name 2024-04-24 13:20:06 +03:00
alina sireneva
7ad3ddbc0c
Jsr (#27) 2024-04-23 22:53:59 +03:00
5caeff93a9
test: initial e2e publishing testing for deno 2024-04-23 13:44:11 +03:00
78457fb158
fix(web): wait for the websocket to close 2024-04-22 19:16:47 +03:00
9d114a3552
build: initial support for jsr building 2024-04-21 04:53:09 +03:00
29d3fd8f8c
fix(core): correct default offset for getHistory with reverse flag 2024-04-19 15:45:10 +03:00
c5ce2c321d
build: some fixes + made @mtcute/test esm-only 2024-04-14 22:18:53 +03:00
ae8ab45a74
chore: fixed remaining type errors 2024-04-14 22:18:53 +03:00
c5d115f088
chore: use target=es2022 with useDefineForClassFields=true 2024-04-14 22:18:53 +03:00
9491b2b1e6
fix: use node: scheme for node imports 2024-04-14 22:18:53 +03:00
15cb920904
chore(convert): removed dependency on tl 2024-04-14 20:57:06 +03:00
ac8d63a669
chore(core)!: inlined dcOption parsing in string sessions
breaking: readStringSession now accepts only one argument
2024-04-14 18:07:10 +03:00
f24f41b646
chore(core): added deprecation notice for v1-2 session strings 2024-04-14 17:52:47 +03:00
32e29715ad
fix(core): automatically add relevant file extension 2024-04-14 05:47:30 +03:00
3580575b82
ci: fix docs build 2024-04-14 04:52:18 +03:00
48d8d58bbf
0.10.2 2024-04-13 07:05:36 +03:00
de3d3d81ba
feat(crypto-node): bundle prebuilts with the package 2024-04-13 06:59:12 +03:00
908aa21f2d
ci: node prebuilt worker 2024-04-13 05:49:13 +03:00
f527ca49cf
fix(core): hopefully fixed typescript performace issues with tg.call
closes #30
2024-04-13 00:31:33 +03:00
7dca68d6b9 v0.10.1 2024-04-05 17:24:59 +00:00
3f0e95ef31
feat(core): joinTextWithEntities method in utils 2024-04-05 18:19:52 +03:00
869d5987c7
fix(html): keep whitespaces in raw text 2024-04-05 18:14:11 +03:00
c962155c2e v0.10.0 2024-04-01 17:32:17 +00:00
bf2f7999a6
feat!: updated to 177 layer
breaking: `.createGroup` now returns `CreateGroupResult`
2024-04-01 15:22:40 +03:00
dc1624e8bc
v0.9.2 2024-04-01 14:29:48 +03:00
9091a10537
fix(core): hopefully fix duplicating msg_id leading to bad_msg_container 64 2024-03-30 16:27:59 +03:00
e20bc02a0b v0.9.1 2024-03-29 18:18:21 +00:00
fc3391feaf
fix(bun): handle backpressure for tcp connections 2024-03-29 20:45:43 +03:00
5ab251cafe
fix(core): improved state_req handling 2024-03-29 09:34:39 +03:00
fa267eef03
fix: correctly reset session 2024-03-28 18:59:21 +03:00
d577f0ed9b
fix(core): improved state_req handling 2024-03-28 18:12:32 +03:00
ff6ffaf31f v0.9.0 2024-03-23 22:57:57 +00:00
31e3cca538
docs: updated node readme 2024-03-23 23:52:11 +03:00
9d34d902a4
feat(create-bot): support bun 2024-03-23 22:53:35 +03:00
bcbf0d6b8c
Merge branch 'master' into sqlite-abstract 2024-03-23 21:32:37 +03:00
1e780ec4af
feat: @mtcute/bun package for initial first-class bun support 2024-03-23 18:13:31 +03:00
0a072ce6a5
chore: lowercase name 2024-03-20 13:56:18 +03:00
50835609f0
chore!: moved @mtcute/sqlite into @mtcute/node
breaking: @mtcute/sqlite no longer exists
2024-03-20 13:52:50 +03:00
142dddd253
refactor: moved most of sqlite implementation to core 2024-03-20 01:17:58 +03:00
b4099f15bd
build: fixed vitest version in @mtcute/test + fixed vite configs 2024-03-19 01:07:22 +03:00
852b1b766c
test: properly run tests on bun
turned out bun sucks :D
2024-03-18 01:58:36 +03:00
3074e9bbf5
build(deps): updated vitest 2024-03-17 21:46:51 +03:00
68689c27c3 v0.8.2 2024-03-17 17:36:50 +00:00
9f76b78103
fix(create-bot): husky || true 2024-03-17 20:16:04 +03:00
d3344dd7b5 v0.8.1 2024-03-17 17:12:30 +00:00
8f909ee338
fix(create-bot): husky install is deprecated 2024-03-17 19:50:24 +03:00
ff89ce3ddd
feat(create-bot): support package managers other than pnpm 2024-03-17 19:48:04 +03:00
b04db0ba6a v0.8.0 2024-03-17 06:49:36 +00:00
6828d56317
feat(tl): updated to layer 176 2024-03-17 08:29:46 +03:00
902196bdcf
chore(convert): expose dc mappings 2024-03-17 08:29:39 +03:00
14a54f5a25
fix(core): check for message id in _findMessageInUpdate 2024-03-17 06:23:40 +03:00
81a12a8088
fix(core): send connection state through worker 2024-03-17 00:36:09 +03:00
f7d6e6730b
feat(core): withParams method 2024-03-17 00:31:58 +03:00
03c8f24f2f
docs: fixed typedoc configs 2024-03-15 23:38:39 +03:00
c9a4558e5c
fix: download threads never connecting 2024-03-15 03:20:59 +03:00
ab2425a26e
feat: support for "updating" states + improved catch up a bit 2024-03-15 00:02:04 +03:00
83746aa460
feat: initial support for connection states 2024-03-12 13:15:27 +03:00
a0b3e9cc6e
chore: avoid using namespaces in favor of esm 2024-03-07 18:11:02 +03:00
Alina Sireneva
b172787da1
docs(convert): fixed links in readme 2024-03-07 12:25:09 +03:00
149fa6b49e
chore: readme + exports 2024-03-07 09:53:30 +03:00
2fe476cf3c
feat: initial support for session conversion 2024-03-07 09:32:16 +03:00
ddc8f1dad7
feat(tl): scrape schema from weba/k sources 2024-03-07 05:54:47 +03:00
638b214cc1
docs(dispatcher): readme 2024-03-07 05:35:37 +03:00
f9d9133e88
fix(create-bot): NodeTelegramClient -> TelegramClient 2024-03-07 05:35:37 +03:00
6756c78065
docs: updated readmes 2024-03-07 05:35:37 +03:00
d64aa478cc
fix(web): export websocket 2024-03-07 05:35:37 +03:00
288d6ce7c7
chore: sideeffects: false in the rest of the packages 2024-03-07 05:35:37 +03:00
b9f8fd58db
fix(core): try to use symbol for platform 2024-03-07 05:35:37 +03:00
d87a11b52e
build: added sideEffects: false 2024-03-07 05:35:37 +03:00
42f1482d7f
build(core): improved tree-shakeability 2024-03-07 05:35:37 +03:00
56b2fe70d3
fix(web): worker fixes 2024-03-07 05:35:37 +03:00
fea8d93dcb
fix: only-if-esm for getWasmUrl 2024-03-07 05:35:37 +03:00
399336fa4a
chore: put wasm blob to root of the package 2024-03-07 05:35:37 +03:00
fbf5c8f4bc
chore!: removed @mtcute/wasm dependency from core
breaking: `WasmCryptoProvider` no longer exists
2024-03-07 05:35:37 +03:00
baa4ccf755
fix(core): web worker implementation 2024-03-07 05:35:36 +03:00
f274dfe857
fix(core): use workaround for wasm loading 2024-03-07 05:35:36 +03:00
14549020aa
test(e2e): added worker tests 2024-03-07 05:35:36 +03:00
cbc2002781
chore: worker 2024-03-07 05:35:36 +03:00
791a3a58b5
fix: wasm build and e2e fixes 2024-03-07 05:35:36 +03:00
9420f155b2
fix: tsconfig refs 2024-03-07 05:35:36 +03:00
fb72d3194d
fix: properly handle file uploads + downloading as node stream 2024-03-07 05:35:36 +03:00
a2739b678c
chore!: started extracting platform-specific stuff into separate packages 2024-03-07 05:35:36 +03:00
ceb606a347
fix(core): hide _parsedStatus from inspect 2024-03-07 05:35:36 +03:00
db98751f67
chore: removed platform-specific code in wasm 2024-03-07 05:35:36 +03:00
806c62bda8
chore: remove platform-specific code from tl-runtime 2024-03-07 05:35:34 +03:00
930d0558f3 v0.7.3 2024-02-28 11:03:43 +00:00
be899afca2
fix(core): infinite bad_msg_notification 17 when system time is wrong 2024-02-28 13:18:36 +03:00
371aea910b v0.7.2 2024-02-22 13:57:33 +00:00
8f0e072f4a
fix(core): string session
closes #17
2024-02-22 16:30:17 +03:00
10ccfae496
fix: __dirname on windows
bruh i hate windows
2024-02-22 16:18:40 +03:00
5e3b6aa626 v0.7.1 2024-02-22 12:41:11 +00:00
852bc10629
fix(core): session import/export
closes #17
2024-02-22 15:22:22 +03:00
98eb01f664
chore(create-bot): use openurl instead of open 2024-02-22 14:42:16 +03:00
43e10dda73
chore(create-bot): use colorette instead of chalk 2024-02-22 14:34:50 +03:00
f05ada6cd2
fix(create-bot): use cross-spawn
i hate windows lol
2024-02-22 14:20:23 +03:00
8c38f836dd
feat(core): export all methods in methods.js 2024-02-21 21:44:19 +03:00
6c36cf2a72
chore: initial bun support 2024-02-20 00:55:41 +03:00
54c904d3fa
fix(core): avoid imports from tty 2024-02-20 00:28:12 +03:00
2c6162987d v0.7.0 2024-02-19 18:36:06 +00:00
2d01b38e95
feat(core): support new message actions 2024-02-19 20:45:53 +03:00
8460cc3ade
feat(tl): updated to 174 layer 2024-02-19 20:37:36 +03:00
80850c9ad5
fix(create-bot): pnpm run run -> pnpm start 2024-02-08 04:31:34 +03:00
a17604b623
fix(core): websocket reconnection
lol. lmao, even
2024-02-08 04:14:43 +03:00
5d137a9125
fix(core): check pq for primality 2024-02-08 04:10:41 +03:00
809e794816
test: added factorization tests 2024-02-08 04:10:09 +03:00
cc5cb3150d
fix(sqlite): added migrations for older storage schema 2024-02-08 02:07:47 +03:00
99bd1bc313
feat: resolveUser and resolveChannel methods + refactor to use them 2024-02-06 00:25:08 +03:00
27e14472ff
feat: app config manager 2024-02-05 01:44:51 +03:00
e6c7af6ed2
feat: updated to layer 173 2024-02-04 18:28:27 +03:00
7036fe1e97
fix: fixed handling of -404 2024-02-03 22:08:19 +03:00
ac3b5df9a0
refactor!: renamed MaybeAsync -> MaybePromise 2024-02-03 21:56:44 +03:00
20a46c54a8
fix: e2e 2024-02-03 13:26:21 +03:00
6768b15514
fix: tests 2024-02-03 11:57:40 +03:00
4e78b643df
fix: fixed build for other packages 2024-02-02 04:12:02 +03:00
c8e026dc03
refactor!: merged client into core + fixed dispatcher for new storage 2024-01-31 19:30:57 +03:00
eca99a7535
refactor!: large refactor of storage implementation
breaking: pretty much the entire storage thing has been overhauled.
migrations from older versions **are not** available, please do them manually through string sessions
2024-01-04 00:22:26 +03:00
f72b810214 v0.6.0 2023-12-29 12:57:36 +00:00
70413dd7b0 v0.5.0 2023-12-29 12:27:13 +00:00
0474ab918a
feat(client): reactions for bots 2023-12-29 15:04:18 +03:00
9459748d0d v0.4.0 2023-12-26 22:12:09 +00:00
c175e41616
feat!: updated to layer 169
breaking:
  - boost related methods re-done to allow for multiple boosts per user
  - `BotKeyboard.requestPeer` and `peer_chosen` changed
2023-12-24 01:43:58 +03:00
9ff6a628e5
test(e2e): added TelegramClient e2e tests 2023-12-23 22:41:21 +03:00
ca1916c5cb
fix(core): do not close connection by inactivity when there are pending queries 2023-12-23 21:58:36 +03:00
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
3eaceedb8b
feat(client): support public/personal/video profile photos in Chat 2023-12-21 19:17:09 +03:00
0bdf778462
chore(client)!: renamed some methods
breaking:
  - `setProfilePhoto` -> `setMyProfilePhoto`
  - `setUsername` -> `setMyUsername`
  - `setEmojiStatus` -> `setMyEmojiStatus`
2023-12-21 17:50:55 +03:00
7e0f172aa8
fix(core): incomplete session reset 2023-12-20 14:00:29 +03:00
81eb664fec
fix(sqlite): dangling timeout when multiple .load() calls 2023-12-20 00:26:00 +03:00
c538c2b059
fix(core): allow storage reset to be async 2023-12-19 23:44:39 +03:00
62e8e3b33f
fix(sqlite): cleanup on exit 2023-12-19 02:26:19 +03:00
02a6a0e133
fix(core): proper exit cleanup in json file 2023-12-19 02:24:19 +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
d56fb16fc1 v0.3.0 2023-12-18 11:51:40 +00:00
4f7fd24dd9
chore(core): expose init params in .params field 2023-12-16 20:00:31 +03:00
dfed3c2761
chore(core)!: disallow passing api id as string 2023-12-16 19:55:29 +03:00
7a0d8ecef2
chore(core): various improvements 2023-12-16 19:52:44 +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
b261a661d2
chore(node): allow omitting input params 2023-12-13 21:43:46 +03:00
38358622e7
feat(core): allow passing rpc call options by proxy 2023-12-13 18:30:28 +03:00
1ce52d66ff
chore(client): reworked codegen, use prototype methods instead of fields 2023-12-13 18:29:54 +03:00
314bfa0fec
fix(core): export MemoryStorage 2023-12-13 17:19:10 +03:00
56c2085190
feat(core)!: future salts storage
breaking: `ITelegramStorage` interface changed
2023-12-12 00:23:34 +03:00
f4ee1f599f
chore(client)!: improved translate* methods
breaking: both methods now return `TextWithEntities`
2023-12-11 21:52:48 +03:00
987de6571a
feat(core): handle future salts 2023-12-11 06:15:31 +03:00
ee9e2e35c4
feat(client): sequential message sending 2023-12-11 01:55:58 +03:00
ce2d1b0a9a
fix(core): getState requests not scheduling properly 2023-12-11 01:03:19 +03:00
d1e4a15f81
feat(core): requests chaining 2023-12-11 00:07:41 +03:00
aaa2875fe1
fix(core): support opting out of -503 resending 2023-12-08 20:33:41 +03:00
b6fac0785c
fix(core): cleanly close connection on inactivity timeout 2023-12-08 06:31:17 +03:00
ce3cebff66
fix(tl): repalce %d in descriptions 2023-12-08 05:35:01 +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