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
01d476d19a
feat: support for dc switches, session import/export, rpc sending
2023-08-11 23:59:24 +03:00
eb585fc3f1
build: fixes after rebase
2023-07-24 00:14:37 +03:00
teidesu
4f834afc6a
refactor: (initial) extracted connection management to NetworkManager
2023-07-24 00:14:29 +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
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
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
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
d0ea4ed5ca
refactor: changed stylizing of the name (MTCute -> mtcute)
2022-09-14 16:18:56 +03:00
teidesu
443786a35b
build: fixed build for client and dispatcher packages
2022-09-12 19:50:39 +03:00
teidesu
77bfef98d1
feat: updated to 145 layer
2022-09-12 13:54:33 +03:00
teidesu
ea299cacca
docs: improve documentation
2022-08-29 16:22:57 +03:00
teidesu
e7219ed2de
refactor: normalizeToInput* now throws an error by itself, never returning null
2022-08-29 16:15:37 +03:00
teidesu
390b65f796
build(docs): api reference generation improvements
...
- added readme in each package
- updated typedoc, fixed related issues
- use @link instead of @see
- moved configs to typedoc.js, improved exclusion of unneeded stuff
- custom plugin for typedoc for cross-package references
- preparing to move documentation to separate repository
2022-08-24 23:37:26 +03:00
teidesu
b08ec342e5
feat(client): export customEmojiId in Sticker
2022-08-18 21:34:35 +03:00
teidesu
eaa517a5c3
feat(client): support custom emojis
2022-08-18 19:52:24 +03:00
teidesu
8b6cde6db5
fix(client): made ChatJoinRequestUpdate inspectable
2022-08-02 03:48:18 +03:00
teidesu
537b7d0462
feat(core): support overwriting existing session with session strings
2022-07-31 08:01:40 +03:00
teidesu
ad29b2af17
fix(client): improved getHistory method
...
merged iterHistory into getHistory, improved pagination, offset support and other stuff
2022-07-23 02:22:20 +03:00
teidesu
b6f2f39906
fix(client): improved searchMessages method
...
use offsetId for pagination, expose minId/maxId/minDate/maxDate, threadId, offsetId
2022-07-23 01:29:36 +03:00
teidesu
ebe9786987
feat: i18n package
2022-07-19 02:47:59 +03:00
teidesu
feac72e3ec
feat(client): accept raw tl object for keyboard
2022-07-13 05:14:56 +03:00
teidesu
42c5d29167
fix(client): automatically derive gallery
for inline result
2022-07-13 05:09:58 +03:00
teidesu
2c6238798f
fix(client): remove explicit simple/non-simple webview type, change it automatically if needed
2022-07-13 04:53:29 +03:00
teidesu
2c54751029
fix(client): hopefully fix random MEDIA_EMPTY errors when editing inline
2022-07-10 01:38:23 +03:00
teidesu
61ca4130c8
fix(client): allow caption in every media type
2022-07-08 15:01:19 +03:00
teidesu
51280d6494
fix(client): accept formatted string in text inline msg builder
2022-07-04 16:36:51 +03:00
teidesu
e68c9f4bb5
refactor: prettier-ed code, rearranged imports, fixed tests
2022-06-30 16:32:56 +03:00
teidesu
16ffca23d2
fix(client): improve animated profile picture support, fixed related bugs
2022-06-27 16:23:02 +03:00
teidesu
8822de2e1f
fix(client): pass params for forward caption, also codegen-ed client
2022-06-21 21:07:54 +03:00
teidesu
11d91c1f55
feat(client): support sending as peer
2022-06-21 21:05:27 +03:00
teidesu
1be12d9917
feat(client): support noforward flag when sending
2022-06-21 20:59:25 +03:00
teidesu
7d71728868
feat(client): support forwarding withot author/caption
2022-06-21 20:56:45 +03:00
teidesu
0396710b18
feat(client): improve support for premium stickers and video thumbnails
2022-06-21 20:53:57 +03:00
teidesu
1ac0cd8530
feat(client): expose info about premium users and media
2022-06-20 01:51:07 +03:00
teidesu
2c3529870a
feat(client): updated to layer 143
...
also fixed some minor bugs
2022-06-18 22:47:31 +03:00
teidesu
0e40b4a5f7
fix(client): fixed kickChatMember
...
i fucking love telegram serverside race conditions
2022-06-07 19:40:42 +03:00
teidesu
e1326a5cf1
fix(client): added missing <any> for formatted strings
2022-06-07 19:02:21 +03:00
teidesu
9039830572
feat(client): support reactions
2022-05-12 10:09:37 +03:00
teidesu
0a217108ba
feat(client): added get() method in PeersIndex
2022-05-11 13:17:23 +03:00
teidesu
3b15c66fc3
fix(client): fixed inspecting buffers
...
i may actually be retarded
2022-05-11 11:50:09 +03:00
teidesu
b4beeba33c
feat(client): support user profile button
...
this one does not automatically do resolvePeer because i'm too lazy to make an intermediate type just for this type of buttons. once there are more of them, maybe i will...
2022-05-09 17:32:42 +03:00
teidesu
63d0ea2ddf
feat(client): support join requests
2022-05-09 17:25:38 +03:00
teidesu
be27e33d61
feat(client): support new invite links (t.me/+)
2022-05-09 00:20:32 +03:00
teidesu
a0bfe2c075
feat(client): support get/setBotMenuButton methods
2022-05-09 00:00:22 +03:00
teidesu
d41bec9c73
feat(client): support setBot*DefaultAdminRights methods
2022-05-08 23:34:28 +03:00
teidesu
a10221533c
feat(client): helper for webview keyboard buttons
2022-05-06 23:50:21 +03:00
teidesu
daff3e62a0
feat(client): support webm stickers
2022-05-06 20:00:15 +03:00
teidesu
9543f64558
feat(client): sticker choosing typing event
...
also prettier fucked everything up, fixed that
2022-05-06 17:53:44 +03:00
teidesu
a7e866f3eb
refactor: assertNever util, use it in most places
...
haven't used it in some just yet because not everything is implemented (particularly, newer attachment types, typings, admin events, etc.)
2022-05-06 13:50:30 +03:00
teidesu
e02763dcdd
fix(client): fixed usage of FormattedString type
2022-05-06 00:47:26 +03:00
teidesu
1ef1c0669d
feat(parse-mode): support spoiler entity
2022-05-06 00:40:47 +03:00
teidesu
d8111ea525
feat(parse-mode): compile-time formatted string compatibility check
2022-05-06 00:11:28 +03:00
teidesu
d031388ea2
fix(build): fixed imports, bumped typescript
2022-05-05 20:08:38 +03:00
teidesu
2b0af79fb3
feat(client): added non-working translation methods
2022-04-29 17:54:11 +03:00
teidesu
2289cc690d
build: migrated to pnpm, updated and cleaned up deps
2022-04-28 16:58:09 +03:00
teidesu
9493759572
build: updated to layer 139
...
didn't add any new layers' features, only bumped layer
2022-04-01 22:17:10 +03:00
teidesu
ec736f8590
some changes
...
i've been wanting to name a commit like this for my entire life, lol. seriously though, a lot has changed:
- extracted TL-related stuff to `@mtcute/tl-utils` and `@mtcute/tl-runtime`, rewrote codegen in TS
- updated to layer 134, moved to int64 identifiers
- rewritten networking (mtproto), rewritten updates handling
- *lots* of refactoring
still a very early version though, there are a lot of improvements to be made, but at least it runs, lol
also tl-reference will not be updated anytime soon because i want to rewrite it
2021-11-23 00:03:59 +03:00
teidesu
9b5ca0cb2a
refactor: improved logging, moved to custom logger instead of debug
2021-08-14 12:57:26 +03:00
teidesu
4b22ee5b25
rename back to mtcute
...
idk lol
2021-08-05 20:38:24 +03:00
teidesu
b7751f0a57
fix: various fixes, improved updates handing
2021-08-05 20:14:19 +03:00
teidesu
8504e3bf14
fix(client): fixed qts fetching and storing
2021-08-05 14:23:51 +03:00
teidesu
6be71c3572
feat(client): support updateBotStopped
2021-08-04 13:23:39 +03:00
teidesu
c943391e15
fix(client): update local pts/qts before dispatching the update
2021-08-04 13:16:08 +03:00
teidesu
a3cf0c526a
fix(client): reworked updates, added support for qts
2021-08-04 12:58:57 +03:00
teidesu
860a0e623f
fix(client): fixed online status for bots
2021-08-04 12:56:35 +03:00
teidesu
37398d1080
fix(client): file: prefix in fileName attribute
2021-08-02 14:46:12 +03:00
teidesu
a8d3543e64
build: preparing for publish, moved to strict typescript, fixed some stuff
2021-07-30 17:40:50 +03:00
teidesu
1cf9929e3f
fix(core): fixed test servers, fixed tests, slight refactor
2021-07-27 15:32:18 +03:00
teidesu
2f1c8548a0
build: renamed to mtqt
2021-07-25 21:03:40 +03:00
teidesu
7775ff4eaa
feat(client): replyToThreadId field for Message
2021-07-25 21:01:38 +03:00
teidesu
cc8c974e23
feat(client): getDiscussionMessage method
2021-07-25 14:00:51 +03:00
teidesu
87de39a6fb
fix(client): gallery defaults to true for answerInlineQuery
2021-07-24 22:43:14 +03:00
teidesu
cb2df91187
fix(client): optional params in sendCopy
2021-07-23 23:09:32 +03:00
teidesu
0525a59ab3
fix(client): better inspection of buffers
2021-07-22 01:54:00 +03:00
teidesu
4b417afd81
feat(client): isValidSticker field
2021-07-22 01:47:06 +03:00
teidesu
4c717ffc63
fix(voice): proper handling of waveforms
2021-07-22 01:46:31 +03:00
teidesu
aa09262aae
fix(client): proper handling of last messages
2021-07-17 18:46:42 +03:00
teidesu
627fdbed2f
refactor(dispatcher): big refactor, moved updates parsing to client, separated raw updates from parsed, moved Conversation to client package
2021-07-17 17:26:31 +03:00
teidesu
c8c0b4a320
fix(client): export defaultDcs
2021-07-14 20:58:27 +03:00
teidesu
0a39d8a2d5
fix(client): fixed imports
2021-07-14 16:34:15 +03:00
teidesu
2f8b3472d1
feat(client): deleteScheduledMessages method
2021-07-10 15:00:40 +03:00
teidesu
ca1e5c9efa
feat(client): sendScheduled and getScheduledMessages methods
2021-07-10 01:19:59 +03:00
teidesu
a33548e790
fix(client): correct sending of newly uploaded files in media groups
2021-07-10 01:09:49 +03:00
teidesu
b38f2cd6ae
fix(client): hide inputPhoto from inspection
2021-07-10 00:54:43 +03:00
teidesu
6acb638c6a
fix(client): correct handling of multiple peers in getPeerDialog
...
i swear it worked. idk how.
2021-07-09 23:34:46 +03:00
teidesu
300f10074a
feat(client): getPeerDialogs method
2021-07-09 22:50:04 +03:00
teidesu
817eb3aa8d
fix(client): mention and permanentMention now return formatted string with parse mode
...
also slightly improved docs on permanentMention
2021-07-09 17:00:45 +03:00
teidesu
d611f91f19
feat: parse mode template literals override default/passed parse mode
2021-07-09 16:39:45 +03:00