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
9ed587209c
fix(client): use quoteOffset for quotes
2023-12-04 23:37:44 +03:00
799fce4152
v0.2.3
2023-12-04 14:11:30 +00:00
e42a73fd07
fix(core): session exporting while on default dc
2023-12-04 16:28:25 +03:00
465da7aa9d
v0.2.2
2023-12-04 12:58:37 +00:00
d4555f107e
fix(core): apparently re-export from tl
...
apparently due to some issue in vite `export *` from cjs module doesnt export shit
2023-12-04 15:40:17 +03:00
7a89e5049e
fix(client): save storage after each api call
...
idk might rollback later
2023-12-04 15:10:13 +03:00
2eb4d307cb
fix(client): fixed typings
2023-12-04 15:08:05 +03:00
78aae6ac78
test: sendText tests
2023-12-03 01:34:58 +03:00
cbf065af8d
v0.2.1
2023-12-02 18:44:00 +00:00
389b3cfae0
fix(client): updateShortSentMessage handling
...
oops
2023-12-02 21:12:16 +03:00
e335a6cf10
fix: accept sync function in editMessageWith
2023-12-02 21:01:39 +03:00
72dd8f5b2c
v0.2.0
2023-12-02 17:38:41 +00: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
893a15d111
chore(client)!: better parsed peer handling
...
breaking: anonymous sender is now represented with `AnonymousSender` interface and not `string`
2023-12-02 17:48:01 +03:00
9db9411c27
chore(client)!: improved replied-to message handling
...
breaking:
- `MessageReplyInfo` renamed to `RepliedMessageInfo`
- some types were changed
2023-12-02 07:56:13 +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
0b2ae3aac6
fix: import compatibility with ts-node/esm
...
see https://github.com/TypeStrong/ts-node/issues/1934
2023-12-02 04:10:31 +03:00
392ff5ad2d
feat(client): getSimilarChannels method
2023-12-01 19:52:48 +03:00
4d27ca56d1
feat!: updated to layer 167
...
breaking:
- `User#color`: type changed `number -> ChatColors`
- `User#replyBackgroundEmojiId` removed (moved to `color.backgroundEmojiId`)
- same for `Chat`
2023-12-01 17:29:36 +03:00
c42c629475
feat(client): allow implicit storage usage
2023-11-30 23:53:33 +03:00
93ddc6a58c
chore!: do not default to MemoryStorage
2023-11-30 22:57:10 +03:00
8214750055
chore: deprecated json-based storages
2023-11-30 22:40:38 +03:00
1f53923dfc
feat(core): indexeddb storage
2023-11-30 22:20:16 +03:00
b43070e3df
fix(client): wrong missing peer handling
...
im actually very dumb
2023-11-30 20:26:50 +03:00
8e548d2aa5
fix(sqlite): do not reset on destroy
...
am i actually retarded or something????
2023-11-30 01:27:51 +03:00
a36cdf1d20
test: run tests in browser
2023-11-30 00:20:37 +03:00
51e67a5113
fix(dispatcher): proper lifetime management for state storage
2023-11-27 14:58:48 +03:00
ec0865c746
fix(sqlite): reset before destroying
...
should fix client not closing properly
2023-11-27 14:55:27 +03:00
945872e2fd
fix(client): do not quote simple replies
2023-11-27 14:05:07 +03:00
ba3d02ac94
fix(tl): do not codegen for mtcute.*
2023-11-27 07:06:32 +03:00
b25f9dddfa
feat!: support min updates
...
breaking: changed `ITelegramStorage` interface, changed tl schema a bit
2023-11-27 06:33:32 +03:00
48411323af
fix(core): fixes for highload bots
2023-11-25 18:15:34 +03:00
bb31dc80b0
feat(dispatcher): CallbackQueryContext#editMessageWith
2023-11-23 22:12:00 +03:00
1dcbf277ef
feat(client): Message#textWithEntities
2023-11-23 22:11:23 +03:00
8249bd2ea4
feat(client)!: batched queries
...
breaking: getUsers may now return null
2023-11-23 19:11:00 +03:00
238ef7c826
test(dispatcher): some more tests
2023-11-19 22:53:39 +03:00
8965273172
test(dispatcher): some tests
2023-11-19 04:30:16 +03:00
2ef401a5c7
v0.1.3
2023-11-17 16:26:58 +00: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
77c46736da
v0.1.2
2023-11-17 15:27:10 +00:00
0d3c18b885
fix(core): some dumb null checks
2023-11-17 18:09:35 +03:00
a0a22554cb
feat(tl): updated layer 166
...
gotta love telegram versioning
also made docs downloading faster
2023-11-17 17:26:45 +03:00
42c3b2c809
test(client): high-level methods and types tests
2023-11-17 00:17:03 +03:00
4a027d5498
test(client): test coverage for client utils
2023-11-16 02:42:02 +03:00
dbe5ff190e
fix(dispatcher): allow empty filter in callback data builder
2023-11-16 02:42:02 +03:00
71a3a05c9a
fix(create-bot): fixed no-linters template and dockerfile
2023-11-16 02:42:01 +03:00
007c98205d
fix(client): _parsedStatus is no longer inspectable
2023-11-16 02:42:01 +03:00
207dc5f15a
fix(client): false negatives in automatic forward detection
2023-11-16 02:42:01 +03:00
484149eae9
test(core): more tests!
2023-11-14 04:37:00 +03:00
13be8482e0
refactor: moved test utils to @mtcute/test
2023-11-13 20:14:32 +03:00
9d12b715c7
chore: moved most configs to .config
2023-11-13 13:28:11 +03:00
08d3afadd8
test(core): more transport tests
2023-11-13 10:43:56 +03:00
6e3394316e
v0.1.1
2023-11-12 16:36:12 +00:00
ec1154fdef
build: fixed tl versioning + changelog generation
2023-11-12 19:19:02 +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
38de001e8d
fix(docs): exclude test files from docs, also fixed build for crypto-node
2023-11-12 01:55:26 +03:00
8204dc86a4
chore: removed dispatcher dep from core (again), improved build script
2023-11-12 01:17:20 +03:00
964f47497c
chore(core): moved random to crypto provider, added tests for functions relying on rng
2023-11-12 00:36:00 +03:00
e31ecbd3d1
test(core): improved test coverage
2023-11-11 18:38:57 +03:00
59a4a7553f
test(tl-utils): improved test coverage
2023-11-09 21:03:52 +03:00
96a443f8d3
test: moved to vitest from mocha/chai
...
damn vitest is so good
2023-11-09 00:20:43 +03:00
1abf35e30c
feat: basic test utils
2023-11-08 17:28:45 +03:00
18178b438d
feat(wasm): added sha1/256 to wasm, removed most of async in crypto
2023-11-08 00:53:15 +03:00
70f4e40ef5
chore: embraced native bigints
2023-11-06 02:28:35 +03:00
1c60082d61
fix(wasm): fixed CC in makefile
2023-11-04 22:42:37 +03:00
0a7979a986
fix(wasm): added option for custom compiler in makefile
...
also rebuilt .wasm with appleclang
2023-11-04 20:52:46 +03:00
eec142f0e5
feat: wasm! 🚀
2023-11-04 06:44:18 +03:00
4c42304a79
build: extracted custom build config to packages themselves
2023-11-02 21:23:17 +03:00
e0f4b0d7b5
build(deps): removed @types/node and file-type
2023-11-02 19:40:14 +03:00
5e79dc32c5
feat: build crypto-node against node crypto
2023-11-02 19:11:26 +03:00
59c6ae4cbf
v0.1.0
2023-11-01 19:56:23 +00:00
23a0e69942
refactor: no more parse modes!
2023-11-01 20:24:00 +03:00
cfa7e8ef5c
fix(template): new dispatcher api
2023-11-01 14:11:46 +03:00
871f161694
docs: updated packages readmes
2023-11-01 14:05:45 +03:00
958f7ff81c
ci: release building
2023-11-01 01:03:49 +03:00
103901ed21
build: use workspace:^
to link monorepo deps
2023-10-31 20:55:56 +03:00
e3682058df
chore: removed hard tl dependency for parsers
2023-10-31 13:12:12 +03:00
f31d93c365
fix: dont use regex to extract filename
...
closes #12
2023-10-30 21:40:51 +03:00
220b564d52
chore: set version to 0.1.0
2023-10-30 14:59:34 +03:00
73cd1e7dc9
docs: use @default
jsdoc tag
2023-10-29 20:25:06 +03:00
0ef2eeb082
fix(dispatcher): reset state when entering another scene
2023-10-29 16:58:47 +03:00
fcab8a5882
fix(tl): cross-schema conflict resolution leading to missing references
2023-10-29 09:14:48 +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
49d9d5999d
fix: stop using tsconfig paths
2023-10-29 00:51:31 +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
9791f8faae
docs: updated typedoc, added ci, fixed some docs
2023-10-27 14:25:21 +03:00
528cc4dc92
fix(create-bot): git setup
...
also im retarded and forgot to include prettier in deps
2023-10-27 00:15:56 +03:00
52773a6cb5
fix(create-bot): added .env to gitignore
2023-10-26 23:58:39 +03:00
f3609fedca
fix: tests
2023-10-26 23:54:04 +03:00
4ac6e439a9
fix: various improvements
2023-10-26 22:23:25 +03:00
022481966b
refactor(dispatcher): improved surface api
2023-10-26 22:22:40 +03:00
c061581abb
chore: various surface api improvements & fixes
2023-10-24 11:49:17 +03:00
21d7488788
fix(core): allow empty startgroup parameter
2023-10-23 19:17:04 +03:00
3d7004fda5
fix: exports
2023-10-23 18:51:24 +03:00
969a0366d3
fix(create-bot): disabled import/named rule
2023-10-23 18:08:22 +03:00
343c925b72
fix(node): do not override .start()
2023-10-23 12:25:39 +03:00
d5d5615a4d
build(create-bot): fixed package building
2023-10-23 12:19:53 +03:00
f1bc6aff64
fix: ts
2023-10-23 11:45:17 +03:00
c3d954f334
fix(dispatcher): state fixes + better wizard interface
2023-10-23 11:43:24 +03:00
e86eddfb57
fix(create-bot): fix ts
2023-10-23 00:11:02 +03:00
0054491665
feat(core): helpers for deeplinks
2023-10-22 23:42:10 +03:00
92dddb75f1
feat: new package to automatically scaffold bots
2023-10-22 20:18:12 +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
01e5fbb95d
chore: fuck esm, all my homies hate esm
...
feel free to contribute though
2023-10-12 15:03:15 +03:00
b5c7a6b90d
chore: change license to MIT
2023-10-12 07:26:26 +03:00
0841cbb031
fix: errors codegen
2023-10-12 05:24:16 +03:00
0ca62ab375
fix: support new permissions in ChatPermissions
2023-10-12 04:50:47 +03:00
1ba366a12b
chore: extracted getters memoization into util
2023-10-12 04:43:50 +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
e01c876690
feat: accept high-level objects as inputs to methods
2023-10-11 08:42:37 +03:00
a03d73503a
refactor: initial support for esm
...
also fixed all circular imports and added checking for them via dpdm
2023-10-11 08:42:37 +03:00
280a98f52a
chore: re-thought method arguments
...
also dropped support for registration
2023-10-11 08:42:37 +03:00
a6726ccb40
build(deps): bumped prettier to 3.0.3
2023-10-11 08:42:37 +03:00
75021648eb
refactor: improved typings for MessageEntity
2023-10-06 04:53:19 +03:00
5600f292f7
fix: support more cases in chat-member-update
2023-10-06 03:45:34 +03:00
c7d82d41f0
feat: message groups
2023-10-06 01:47:45 +03:00
85ca3b4603
feat: abort signals
2023-10-05 18:10:15 +03:00
31b41c93fc
chore: extract MASK_POS
...
closes MTQ-43
2023-10-05 04:41:47 +03:00
74f3d53448
chore: removed eager-async-pool dependency
...
closes MTQ-76
2023-10-05 04:38:55 +03:00
ff75d40e78
docs: generate user/bot availability automagically
...
closes MTQ-85
2023-10-05 04:00:58 +03:00
ec55cb37f7
chore: export Long from core
2023-10-05 01:47:14 +03:00
e22db98444
fix: support no-dispatch index + option to disable it
2023-10-05 01:32:22 +03:00
2bde1c4f3e
feat: feature parity with botapi 6.9
...
well mostly, and assuming i didn't miss anything. closes MTQ-72
2023-10-04 23:34:55 +03:00
e7dc8f0ec7
feat: setEmojiStatus
2023-10-04 21:05:07 +03:00
15b76aab60
feat: more stories-related stuff
...
i forgor 💀
2023-10-04 20:50:57 +03:00
c13cb93b97
docs(threads): imroved HistoryReadUpdate docs
2023-10-04 19:31:00 +03:00
7abcc6188a
feat: stories and boosts
...
closes MTQ-51
2023-10-04 19:26:21 +03:00
62815d26d7
fix(tl): support multiple usages of the same flag
2023-10-04 02:45:11 +03:00
e4e51f7d90
docs: fixed nbsp handling, updated to layer 165
2023-10-03 19:34:12 +03:00
94a3c1631f
fix: bumped file_id version
2023-10-03 16:55:03 +03:00
1686c3f183
feat: history ttl
...
closes MTQ-86
2023-10-03 04:05:24 +03:00
6f7cda5544
feat: content protection aka noforwards
...
closes MTQ-84
2023-10-03 03:48:52 +03:00
efaba06102
feat: multiple usernames
...
closes MTQ-57
2023-10-03 03:23:23 +03:00
544e5a68dc
feat: opt-in error reporting
2023-10-03 02:49:53 +03:00
00f30a6495
feat: forums
...
closes MTQ-77
2023-10-03 00:58:45 +03:00
b2fccf4978
feat: better support for join requests
2023-10-02 19:54:11 +03:00
ea7eabf0be
feat: more non-iterable versions of methods
2023-10-02 18:00:00 +03:00
55c4f296fb
refactor: extract input reactions to InputReaction
2023-10-01 16:36:29 +03:00
95032d3b9a
feat: added ArrayPaginated
2023-09-29 21:45:11 +03:00
82994408a2
feat: refactor some iterable methods to have non-iterable counterpart
2023-09-29 17:02:36 +03:00
59ac74f300
refactor: moved makeInspectable to utils, also fixed ArrayWithTotal
2023-09-25 14:48:32 +03:00
dbcd3f0911
feat(tl): updated to 164 layer
2023-09-24 20:22:09 +03:00
6279126439
chore: remove some casts from filter
2023-09-24 04:26:28 +03:00
7a41950632
fix: use inputPeer in CallbackQuery#getMessage()
...
closes #7
2023-09-24 04:16:43 +03:00
5dcd965934
chore: add export * from core
to client
2023-09-24 04:10:18 +03:00
7ff433ed0a
refactor: import tl from core/client, not tl
2023-09-24 03:37:34 +03:00
e771e592fd
feat: assertTypeIsNot
...
closes MTQ-64
2023-09-24 02:40:41 +03:00
befbceaf8a
chore: changed prettier width to 120
2023-09-24 01:32:22 +03:00
fbe264aab0
ci: moved type-aware linting to pre-commit and ci
2023-09-24 01:08:01 +03:00
976c25141c
refactor: move errors to core
2023-09-22 15:32:28 +03:00
6e8351ac01
refactor: extracted dispatcher filters into multiple files
2023-09-21 14:48:08 +03:00
a3ebd3fc66
fix(tl): ctors with primitive vectors are incorrectly marked as static-size
2023-09-21 14:46:44 +03:00
7a6a30ea5c
chore: export core utils from @mtcute/core/utils
2023-09-21 13:18:09 +03:00
85d2c5f305
fix: test fixes
2023-09-21 02:53:08 +03:00
b8f63b0634
feat(tl): static object size computation
...
closes MTQ-21
2023-09-20 18:37:26 +03:00
5a3b101c9f
chore: avoid using {}, use Maps instead
2023-09-19 01:33:47 +03:00
80d4c59c69
fix: lru map doesn't update links
...
closes #8
2023-09-18 19:40:09 +03:00
53b008f8bc
fix: support <tg-emoji>
and tg-spoiler
in html parser
2023-09-18 03:40:20 +03:00
7bf63b2507
fix: dont export everything on first connection
2023-09-18 03:16:29 +03:00
55edbde3e7
fix: fixed new error codegen
2023-09-07 22:26:52 +03:00
aa863c6a2f
chore: added no-console rule
2023-09-07 22:25:50 +03:00
4b7d7d2e35
refactor: reworked errors codegen
2023-09-06 23:54:51 +03:00
22d8b815d3
refactor: improved api of set-game-score function
2023-09-03 03:44:02 +03:00
81ce550604
chore: improved eslint config
...
closes MTQ-54
2023-09-03 02:37:51 +03:00
a679f364fd
fix: fixed upload and download for new networking
2023-08-23 23:49:47 +03:00
4a0d6fbc88
fix: fixed upload and download for new networking
2023-08-23 22:11:42 +03:00
85c43d804d
fix: client and updates fixes
2023-08-12 22:40:37 +03:00
2b1bac053e
feat: support for tmp_sessions
2023-08-12 18:26:46 +03:00
01d476d19a
feat: support for dc switches, session import/export, rpc sending
2023-08-11 23:59:24 +03:00
13c0a97a58
fix: rebase fixes
2023-07-24 00:14:37 +03:00
743058a020
fix: rebase fixes
2023-07-24 00:14:37 +03:00
eb585fc3f1
build: fixes after rebase
2023-07-24 00:14:37 +03:00
teidesu
0b4edbf70e
feat(core): update connection count and pfs usage on the go
...
holy shit i actually made it 🫣
2023-07-24 00:14:37 +03:00
teidesu
f68d83da06
feat(core): sync keys between connections, exclusive lock for auth
...
in other words, only one main connection does authorization, others wait
2023-07-24 00:14:37 +03:00
teidesu
bd5130c77b
fix(core): use existing auth_key from storage
2023-07-24 00:14:37 +03:00
teidesu
a23197df91
feat(core): (initial) support pfs
2023-07-24 00:14:37 +03:00
teidesu
c9a86c28f0
feat(core): support %h for non-buffer types in logger
2023-07-24 00:14:37 +03:00
teidesu
27d3058408
fix(core): destroy_session requests not being sent
...
i am actually retarded
2023-07-24 00:14:36 +03:00
teidesu
6eed69ad02
refactor: extracted auth key management to AuthKey class
2023-07-24 00:14:36 +03:00
teidesu
4f834afc6a
refactor: (initial) extracted connection management to NetworkManager
2023-07-24 00:14:29 +03:00
teidesu
76639d2993
fix(early-timer): rescheduling inside handler getting instantly reset
2023-07-24 00:13:44 +03:00
teidesu
4848c4e62d
refactor: extracted dc config management to separate class
2023-07-24 00:13:42 +03:00
6a2c5d90b7
fix: error on extra fields in TelegramClient#call + related fixes
2023-07-24 00:12:17 +03:00
6221a8716f
fix: handle vectors of primitives in rpc_result
2023-07-20 22:07:07 +03:00
99e83b40aa
feat(codegen): support bare types and vectors
...
closes MTQ-48
2023-07-20 20:22:57 +03:00
754a288c87
fix: fixes after layer bump
2023-07-20 19:01:34 +03:00
d3338f6614
fix: build fixes + updated to 160 schema
2023-07-20 17:51:24 +03:00
d88bc0ea60
chore: code quality improvements
...
improved eslint config, fixed linter issues, added husky
2023-06-05 00:30:48 +00:00
0471310382
chore: better dependencies management
...
updated and pinned dependencies
added validation for external deps conflicts
removed tl-reference
2023-06-04 17:00:33 +00:00
c591f96b81
fix: local floodwait handler fix
...
im actually retarded lmao
2023-06-04 16:04:46 +00:00
teidesu
8df099fcb8
feat: updated to layer 150
2022-12-07 14:13:24 +03:00
teidesu
b0055b791c
fix(client): incorrect parsing of video stickers as video
2022-12-05 04:05:43 +03:00
teidesu
bc2ed98b14
refactor: use ??= for memoization
2022-10-30 22:24:07 +03:00
teidesu
70b09903f1
feat(client): support pre-checkout queries
2022-10-30 20:51:50 +03:00
teidesu
e75ac9fa5d
feat(client): support invoices with extended media
2022-10-30 20:51:38 +03:00
teidesu
1935413aee
fix(build): fixed delimiter in updates codegen conflicting with prettier
2022-10-30 20:37:52 +03:00
teidesu
f5986e694a
refactor(client): moved parse-update.ts to types/updates
2022-10-30 20:36:17 +03:00
teidesu
7d10e65ecc
fix: properly handle peers without access hash
2022-10-30 20:25:49 +03:00
teidesu
89fd8e8ef0
feat(tl): updated schema to 147
2022-10-30 18:49:55 +03:00
teidesu
71b39d6f53
feat(tl): generate diff file for simpler update flow
...
primarily for my own use
2022-10-30 18:38:31 +03:00
teidesu
416b3d9ef9
refactor: exported string session parsing/serialization to a module
2022-10-09 20:49:39 +03:00