Commit graph

137 commits

Author SHA1 Message Date
3968a35654
feat(dispatcher): scene transition hooks + ToScene when exiting 2024-06-02 17:03:00 +03:00
8e04c13b60
fix(dispatcher): fetch scene for business updates 2024-06-02 00:37:17 +03:00
35800b9c04
fix(dispatcher): require storage when state type is set in root dispatcher 2024-06-02 00:37:15 +03:00
702ff2a0de
fix(dispatcher): don't throw on invalid data when using predicates 2024-05-28 14:25:59 +03:00
2d78a892b4
fix(dispatcher): better errors in CallbackDataBuilder#parse 2024-05-28 14:21:10 +03:00
0960dae59b
feat(dispatcher): allow predicates in CallbackDataBuilder .filter() 2024-05-27 00:07:39 +03:00
82b1552468
feat(dispatcher): filter for scheduled messages 2024-05-06 03:41:02 +03:00
2a399532a3
feat: support business connections 2024-05-06 03:12:33 +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
20e27070dc
fix(dispatcher): pubilc constructor for WizardScene 2024-04-27 01:44:11 +03:00
ae8ab45a74
chore: fixed remaining type errors 2024-04-14 22:18:53 +03:00
142dddd253
refactor: moved most of sqlite implementation to core 2024-03-20 01:17:58 +03:00
a2739b678c
chore!: started extracting platform-specific stuff into separate packages 2024-03-07 05:35:36 +03:00
cc5cb3150d
fix(sqlite): added migrations for older storage schema 2024-02-08 02:07:47 +03:00
ac3b5df9a0
refactor!: renamed MaybeAsync -> MaybePromise 2024-02-03 21:56:44 +03:00
6768b15514
fix: tests 2024-02-03 11:57:40 +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
0474ab918a
feat(client): reactions for bots 2023-12-29 15:04:18 +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
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
e335a6cf10
fix: accept sync function in editMessageWith 2023-12-02 21:01:39 +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
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
b25f9dddfa
feat!: support min updates
breaking: changed `ITelegramStorage` interface, changed tl schema a bit
2023-11-27 06:33:32 +03:00
bb31dc80b0
feat(dispatcher): CallbackQueryContext#editMessageWith 2023-11-23 22:12: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
dbe5ff190e
fix(dispatcher): allow empty filter in callback data builder 2023-11-16 02:42:02 +03:00
8204dc86a4
chore: removed dispatcher dep from core (again), improved build script 2023-11-12 01:17:20 +03:00
0ef2eeb082
fix(dispatcher): reset state when entering another scene 2023-10-29 16:58:47 +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
9791f8faae
docs: updated typedoc, added ci, fixed some docs 2023-10-27 14:25:21 +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
c3d954f334
fix(dispatcher): state fixes + better wizard interface 2023-10-23 11:43:24 +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
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
a6726ccb40 build(deps): bumped prettier to 3.0.3 2023-10-11 08:42:37 +03:00
c7d82d41f0
feat: message groups 2023-10-06 01:47:45 +03:00
7abcc6188a
feat: stories and boosts
closes MTQ-51
2023-10-04 19:26:21 +03:00
7ff433ed0a
refactor: import tl from core/client, not tl 2023-09-24 03:37:34 +03:00
befbceaf8a
chore: changed prettier width to 120 2023-09-24 01:32:22 +03:00
976c25141c
refactor: move errors to core 2023-09-22 15:32:28 +03:00