439f50bc50
Merge branch 'master' of github.com:mtcute/mtcute into fuman-net
2024-11-20 19:59:48 +03:00
9e3e379c25
chore: moved build to @fuman/build
2024-11-16 16:26:23 +03:00
9a38658bec
fix(dispatcher): wrong .merge call in wizard
2024-10-11 23:54:52 +03:00
0cff4113f3
chore!: migrate to fuman Emitter
...
breaking: all events now use Emitter interface (`.on(event, ...) => `.onEvent.add(...)`)
2024-10-01 04:03:18 +03:00
5e26949560
chore!: use maps/sets from fuman
2024-09-29 04:13:51 +03:00
eebf95c6ec
chore!: moved to @fuman/utils for common stuff
...
breaking: some utils were removed from @mtcute/core/utils.js, use them from @fuman/utils instead
2024-09-29 04:13:50 +03:00
66786064e3
chore: use hex/base64/utf from @fuman/utils
2024-09-29 04:13:50 +03:00
412f1af120
feat(dispatcher): added getCompleteChat
and withCompleteChat
, similar to getCompleteSender
withCompleteSender
2024-09-28 21:43:40 +03:00
6166e27808
build: build with vite (initial)
2024-08-24 22:55:25 +03:00
26d1175b26
build: don't use stc when building
2024-08-24 21:52:31 +03:00
b76463ccc0
chore: enabled isolatedDeclarations
2024-08-18 09:44:26 +03:00
a0ed9c2426
chore: migrate to antfu eslint config (+ reformat)
2024-08-18 07:18:13 +03:00
407910c2be
build: friendship ended with prettier
2024-08-12 08:19:16 +03:00
9b6e5ea8fc
fix(dispatcher): CallbackDataBuilder#filter
typings
2024-07-06 22:12:13 +03:00
ecad89b70d
feat(core): support business callback queries
2024-06-25 01:19:29 +03:00
9ed647d075
feat(dispatcher): onAnyCallbackQuery + inline related fixes
2024-06-15 18:13:22 +03:00
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