Commit graph

23 commits

Author SHA1 Message Date
b5bf02fc72
chore(core)!: extract user-specific fields from (Full)Chat to (Full)User
breaking:
 - `getChat`, `getFullChat` now only work for chats (channels/supergroups/basic groups)
 - for users, use `getUser` and `getFullUser`
 - many fields that previously had type `Chat` now have type `User | Chat`
2024-12-09 21:19:41 +03:00
a07b6673dc
chore: bumped @antfu/eslint-config + reformat 2024-12-03 09:55:37 +03:00
412f1af120
feat(dispatcher): added getCompleteChat and withCompleteChat, similar to getCompleteSender withCompleteSender 2024-09-28 21:43:40 +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
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
2a399532a3
feat: support business connections 2024-05-06 03:12:33 +03:00
a2739b678c
chore!: started extracting platform-specific stuff into separate packages 2024-03-07 05:35:36 +03:00
ac3b5df9a0
refactor!: renamed MaybeAsync -> MaybePromise 2024-02-03 21:56:44 +03:00
c8e026dc03
refactor!: merged client into core + fixed dispatcher for new storage 2024-01-31 19:30:57 +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
a36cdf1d20
test: run tests in browser 2023-11-30 00:20:37 +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
fc42dcb973
feat: updated to layer 166 2023-10-29 08:14:00 +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