Commit graph

1144 commits

Author SHA1 Message Date
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
teidesu
8adb79511f feat(tl): updated layer to 146 2022-09-28 00:42:21 +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
bbd738f572 feat(i18n): added OtherLanguageWrapExhaustive for exhaustive other languages 2022-09-12 15:34:30 +03:00
teidesu
d4040a768f fix(i18n): enforce same arg types in OtherLanguageWrap 2022-09-12 15:28:45 +03:00
teidesu
b7d0b85a15 docs(i18n): improved docs 2022-09-12 15:01:43 +03:00
teidesu
4847523cc1 build: updated name in package.json
again. i am actually braindead
2022-09-12 14:50:43 +03:00
teidesu
b96c1407d0 feat(i18n): added pluralization helpers
also slight refactor of typings
2022-09-12 14:37:09 +03:00
teidesu
77bfef98d1 feat: updated to 145 layer 2022-09-12 13:54:33 +03:00
teidesu
597cb4f07b feat(i18n): exported default adapter 2022-08-29 18:57:00 +03:00
teidesu
5019d7b596 feat(i18n): removed immediate dependency on client to allow for outside usage 2022-08-29 18:54:43 +03:00
teidesu
689533c549 feat(i18n): allow custom adapters 2022-08-29 18:53:27 +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
1cc3594f09 docs(tl-utils): documented everything 2022-08-29 14:33:11 +03:00
teidesu
7b7fdc7092 docs: removed typedoc-plugin-coverage
it works like shit
2022-08-28 17:56:56 +03:00
teidesu
7eb843dd20 feat(markdown-parser): added support for custom emojis 2022-08-25 20:17:33 +03:00
teidesu
34f783aa66 feat(html-parser): added support for custom emojis 2022-08-25 20:17:25 +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
e39057bda5 fix(file-id): bumped version
todo: should we really enforce the version? tdlib uses current version from Version.h, but not every version there changes file id format (and v32 is fully compatible with v41 as far as im concerned)
2022-08-18 17:46:03 +03:00
teidesu
26b96c3151 refactor(tl-utils): export everything in index.ts 2022-08-12 20:11:27 +03:00
teidesu
16fdd5ded1 fix(tl): better {@link} generation from documentation 2022-08-12 17:46:04 +03:00
teidesu
9b027425dd fix(tl-utils): handle <br> 2022-08-12 17:22:40 +03:00
teidesu
be343b561e fix(tl-utils): do not break <a href 2022-08-12 17:13:24 +03:00
teidesu
ff58e3ee0d fix(tl-utils): do not make @link tags for primitives 2022-08-12 17:11:19 +03:00
teidesu
e3dbe3b7d1 fix(tl-utils): do not break @link tags 2022-08-12 17:00:02 +03:00
teidesu
b34a90ec30 build: updated layer to 144 2022-08-12 16:17:35 +03:00
teidesu
afb07534f9 feat(tl): added blogfork domain, auto-choose domain for docs 2022-08-12 16:16:44 +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
2a97616d80 fix(codegen): fixed typings codegen, added a test 2022-07-23 05:03:38 +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
0330efd4dc fix(i18n): support FormattedString
totally forgot about it
2022-07-19 03:11:08 +03:00
teidesu
ebe9786987 feat: i18n package 2022-07-19 02:47:59 +03:00
teidesu
a3aca20099 build: updated name in package.json files 2022-07-18 23:32:11 +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
715f4f8a68 fix(core): write buffers to log as trimmed base64 2022-07-10 01:11:24 +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
f2eb033e91 fix(dispatcher): fix not dispatching to children
i dont fucking know why that code didn't work, i hate js
2022-06-30 16:24:13 +03:00
teidesu
fdcd9e0c5b fix(core): fixed orphan timer when multiple usable events are emitted 2022-06-30 15:56:58 +03:00
teidesu
1a60b39214 build: added script for bumping version with dependencies 2022-06-29 22:00:34 +03:00
teidesu
967c10b25c fix(core): never use ipv6 dc when not using ipv6 2022-06-28 23:13:56 +03:00
teidesu
a2dbccada6 fix(tl-utils): optimize readers code size by merging pre-return vars 2022-06-28 19:26:11 +03:00
teidesu
dd4cc471f6 fix(tl-utils): fixed reader codegen impl for non-zero-size fields between flags 2022-06-28 19:23:32 +03:00
teidesu
6978e159d7 feat(tl-utils): support flag for exposing raw flags in codegen 2022-06-28 18:57:22 +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
a864eacfd4 feat(core): added keylen and algo in pbkdf2 (attempt 2, i am retarded) 2022-06-12 19:29:38 +03:00
teidesu
e98b8f8855 feat(core): added keylen and algo in pbkdf2 2022-06-12 19:26:24 +03:00
teidesu
ae07583161 feat(core): added mtproto v1 message key derivation 2022-06-11 18:51:47 +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
cd88a3a74a feat(parser): automatically escape attributes in template strings 2022-06-05 23:53:59 +03:00
teidesu
1cce5c79a2 feat(parser): support conditionals in template strings 2022-06-05 23:23:26 +03:00
teidesu
e0d1102408 fix(tl): bumped minor version 2022-06-05 23:05:15 +03:00
teidesu
02462dac16 fix(tl): correctly process vector<bytes>
fml why am i even doing this
2022-06-05 21:36:12 +03:00
teidesu
fa8ed6da10 fix(core): ignore duplicate messages 2022-05-18 13:04:40 +03:00
teidesu
0633d0a817 fix(dispatcher): handlers without filters 2022-05-14 21:38:41 +03:00
teidesu
e1dab9a195 build: fixed deps 2022-05-14 21:37:48 +03:00
teidesu
9034810ccd tl: updated to layer 142 2022-05-14 20:30:36 +03:00
teidesu
9039830572 feat(client): support reactions 2022-05-12 10:09:37 +03:00
teidesu
96300a795e fix(core): removed unnecessary import 2022-05-11 13:17:39 +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
4f0f16e4a4 fix(tl): improved documentation downloader
- fixed invalid {@link} directives
- fixed underscored parameters being transformed
- fixed using raw layer number (instead of actual)
2022-05-09 17:18:18 +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
e187f8697e feat(filters): filter by sticker type 2022-05-06 20:02:54 +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
252f94a594 fix(dispatcher): implemented userId filter
it got commented out when migrating to 64-bit ids, then i moved to using native numbers for them and forgot to update the filter
2022-05-06 13:56:15 +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
ffafb3e5db build: improved publish script, fixed imports/exports, added note about private repo 2022-05-06 13:23:29 +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
05be58f903 fix(html): fixed un-parsing 2022-05-06 00:36:54 +03:00
teidesu
d8111ea525 feat(parse-mode): compile-time formatted string compatibility check 2022-05-06 00:11:28 +03:00
teidesu
28baf50958 feat(html): big rework, process html similar to browsers 2022-05-06 00:05:21 +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
d0218ece42 fix(client): fixed codegen for new ts 2022-04-29 17:32:07 +03:00
teidesu
44e6ffd368 fix(tl): insert true flags after flags field, support multiple flags fields, updated tests 2022-04-29 16:36:41 +03:00
teidesu
916c41e70c build(codegen): refactored reader codegen (removed the need in additional object), added tests for multiple flags fields
i honestly don't know why i did what i did, it's such an over-complication, lol.
2022-04-29 16:13:07 +03:00
teidesu
a1ea1315df tl: updated to layer 140 2022-04-28 17:23:44 +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
a834fbfa8d refactor(core): moved to PollardRhoBrent for PQ factorization (thanks @mytecor!)
also removed leemon from deps since it's no longer used
2021-09-23 23:11:43 +03:00
teidesu
49eda8f0e3 fix(core): fix bare types and mt_message writing 2021-08-19 23:09:44 +03:00
teidesu
9b5ca0cb2a refactor: improved logging, moved to custom logger instead of debug 2021-08-14 12:57:26 +03:00
teidesu
64aae43572 fix(core): support caching peers from array results 2021-08-14 12:37:22 +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
42d7a2286c fix(core): do not save storage after caching peers 2021-08-05 14:23:18 +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
781384cb86 fix(sqlite): removed unique idx on phone, optimized queries 2021-08-04 12:58:17 +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
852af9ffab fix(mtproxy): fixed types 2021-07-30 17:47:21 +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
d4f07aa07c feat(tl): added types for reactions, also added ability to augment schema from file 2021-07-25 23:19:12 +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
7f112f51a2 fix(core): updated for newer mtproto schema 2021-07-25 15:44:55 +03:00
teidesu
cc8c974e23 feat(client): getDiscussionMessage method 2021-07-25 14:00:51 +03:00
teidesu
b03e2f4f0b fix(tl): updated schema
god i love when telegram changes schema in a backwards-incompatible way and doesn't change layer number because they dont give a slightest fuck on third party mtproto implementations
2021-07-24 23:21:52 +03:00
teidesu
87de39a6fb fix(client): gallery defaults to true for answerInlineQuery 2021-07-24 22:43:14 +03:00
teidesu
f3e7de5c8c feat(core): override layer number 2021-07-24 17:00:20 +03:00
teidesu
cb2df91187 fix(client): optional params in sendCopy 2021-07-23 23:09:32 +03:00
teidesu
abe6cef377 fix(html): added htm alias for prettier users 2021-07-23 23:03:03 +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
96d133dd2f fix(markdown): proper handling of non-link [] groups 2021-07-20 03:26:00 +03:00
teidesu
3b523598ad build: changed license to lgplv3 2021-07-19 03:57:47 +03:00
teidesu
8c62b56acc fix(node): cli input for start() method, not run() 2021-07-18 22:08:50 +03:00
teidesu
199e0a2a7d fix(dispatcher): adding raw handlers
removed from codegen and forgot to add in code, i'm dumb 🤷
2021-07-17 19:08:13 +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
8fb099cfeb fix(core): proper browser support
not much really, fixed exports for webpack, fixed binary mode for websocket
2021-07-16 04:31:04 +03:00
teidesu
5b9ddc1f7b refactor(dispatcher): UpdateInfo<...> to ParsedUpdate 2021-07-14 22:34:03 +03:00
teidesu
6d8c7fee78 refactor: less obscure transport names 2021-07-14 21:08:13 +03:00
teidesu
c8c0b4a320 fix(client): export defaultDcs 2021-07-14 20:58:27 +03:00
teidesu
a7f7e245d8 fix(node): changed default session file name 2021-07-14 16:35:53 +03:00
teidesu
244948149a fix(tl): updated errors 2021-07-14 16:34:33 +03:00
teidesu
0a39d8a2d5 fix(client): fixed imports 2021-07-14 16:34:15 +03:00
teidesu
3fcdd03877 feat(dispatcher): lastMessage and lastReceivedMessage getters for Conversation 2021-07-10 16:12:31 +03:00
teidesu
66e623f21d docs(dispatcher): improved docs for Conversation 2021-07-10 16:05:20 +03:00
teidesu
b9b2b9f6ba feat(dispatcher): Conversation class 2021-07-10 15:10:43 +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
77d597e4db feat(dispatcher): history read update
also fixed imports/exports
2021-07-09 19:41:02 +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
teidesu
be8ffe5b5b feat(dispatcher): text-related filters (equals, contains, starts/ends with) 2021-07-09 01:50:39 +03:00
teidesu
c33646943c fix(dispatcher): middleware and event emitter related fixes 2021-07-09 01:49:53 +03:00
teidesu
28c70a89ba fix(client): correct handling of pts in updateShortSentMessage
i am fucking stupid and can't read my own code
2021-07-09 01:46:37 +03:00
teidesu
967de3391d fix(client): fixed media-related bound methods, added method for sending media groups 2021-07-08 17:22:18 +03:00
teidesu
231b10d8cd feat(dispatcher): made Dispatcher an EventEmitter
this adds a second option for updates dispatching which is not governed by any propagation or stuff.
useful for advanced use-cases.
2021-07-07 23:36:57 +03:00
teidesu
7c3f5cafa6 feat(dispatcher): deeplink filter 2021-07-06 18:38:06 +03:00
teidesu
c2130dec9f build(tl): updated to layer 131 2021-07-06 18:02:26 +03:00
teidesu
69fffd468c fix(client): use nextRate in searchGlobal 2021-07-06 16:50:46 +03:00
teidesu
afd6f54e54 feat(client): mustReply parameter 2021-07-06 02:36:20 +03:00
teidesu
d5e595d7cf fix: added MessageNotFoundError, improved getMessages, fixed methods that use it 2021-07-06 02:24:58 +03:00
teidesu
36ba4c3b87 feat(client): bot keyboard builder 2021-07-06 01:11:06 +03:00
teidesu
6215892090 fix(tl): fix optionals generation
i am fucking dumb
2021-07-05 22:46:36 +03:00
teidesu
ed0198f057 fix(tl): made randomId field required
i wanted to make it auto-fill itself but decided it would be too much hassle
2021-07-05 20:43:42 +03:00
teidesu
8b6d587399 fix(client): improved own username handling 2021-07-05 17:26:30 +03:00
teidesu
be506f5ed7 feat(client): stickerset thumbnails
also fixed a few issues with file ids for thumbnails
2021-07-05 16:06:49 +03:00
teidesu
0d32731b7a fix(file-id): invalid type for stickerSetThumbnailVersion 2021-07-05 15:39:06 +03:00
teidesu
82db8453fc feat(dispatcher): basic middleware functionality 2021-07-03 16:42:41 +03:00
teidesu
17c2edde7e fix(client): further improved handling of updateShortSentMessage 2021-07-03 01:21:54 +03:00
teidesu
54f95bcaa6 fix(client): handle users index for sendText short update 2021-07-03 00:23:41 +03:00
teidesu
e4b1932ca6 feat(client): force text mention for .mention() 2021-07-02 21:32:12 +03:00
teidesu
9ed51fd996 fix: made .mention() work with tagged templates 2021-07-02 21:28:30 +03:00
teidesu
733a1ab84f feat: html and markdown tagged template helpers 2021-07-02 20:20:29 +03:00
teidesu
03cb8fd5e8 docs(client): updated docs for createStickerSet 2021-07-02 19:52:14 +03:00
teidesu
14d2f9ff08 feat(client): inputPhoto getter for Photo 2021-07-02 17:10:57 +03:00
teidesu
23bc4b5e30 feat(client): uploadMedia method 2021-07-02 17:04:45 +03:00
teidesu
94a65b1a74 feat(client): set profile photo from file id or input photo 2021-07-02 16:27:08 +03:00
teidesu
d0e3ebda80 refactor: use type discrimination for media types in Message
this should result in cleaner code without the need to import everything
2021-07-01 22:20:16 +03:00
teidesu
abbebeddf9 feat(client): isGroup getter for Chat 2021-06-30 02:01:11 +03:00
teidesu
2220371efd feat(dispatcher): conditional error propagation to client 2021-06-27 23:59:04 +03:00
teidesu
80e889d95f fix(client): inline mode related improvements 2021-06-27 23:57:27 +03:00
teidesu
596362bb89 fix(tl): automatically resolve conflicts if layer is different 2021-06-27 15:06:42 +03:00
teidesu
ef68b414ad fix(tl): correctly handle constructors without id 2021-06-27 01:08:38 +03:00
teidesu
58f73b6709 fix(client): improved inspection 2021-06-27 00:27:39 +03:00
teidesu
274a05dc9e fix(node): made .run sync
forgot the entire idea of .run, lol. i should get some sleep ig
2021-06-26 23:51:48 +03:00
teidesu
c826c831e2 fix(client): made params optional in InlineQuery#answer 2021-06-26 23:45:59 +03:00
teidesu
0ea953732b fix(dispatcher): removed @internal from non-filtered on* methods
i probably am in fact stupid
2021-06-26 23:34:08 +03:00
teidesu
66c4b0e0b0 fix: updated tl version in the rest of the packages
webstorm for some fucking reason decided not to save some package.json files lol
2021-06-26 23:13:40 +03:00
teidesu
e7f15ec009 fix(node): close readline instance to avoid hanging processes 2021-06-26 22:57:00 +03:00
teidesu
42f6ed1357 feat(client): bot commands related methods 2021-06-26 19:45:06 +03:00
teidesu
f520470fad fix(file-id): updated file id computation for layer 130 2021-06-26 17:13:32 +03:00
teidesu
090f42e559 build(tl): updated to layer 130 2021-06-26 17:13:13 +03:00
teidesu
1abfc56474 feat(tl): merge schemas from tdlib and tdesktop 2021-06-26 16:22:19 +03:00
teidesu
cf7f8e74ea feat(dispatcher): throttle now actually throttles, and does not throw an error 2021-06-25 22:37:26 +03:00
teidesu
54e5374273 fix(client): remove empty from inspection 2021-06-24 20:15:12 +03:00
teidesu
00d9228c1c feat(dispatcher): provide custom default state for wizard 2021-06-24 01:12:20 +03:00
teidesu
a2ad4128f1 fix(dispatcher): default state for merge 2021-06-24 01:12:00 +03:00
teidesu
3c79c56879 fix(client): made _normalizeInputFile and _normalizeInputMedia public 2021-06-24 00:15:12 +03:00
teidesu
bf84556776 fix(client): made _handleUpdate method public 2021-06-24 00:13:10 +03:00
teidesu
028e331cb6 fix(markdown): properly handle square brackets that are not links 2021-06-23 17:08:23 +03:00
teidesu
c3ee177b4c fix(sqlite): parse entity from binary before returning
i am a bit stupid~
2021-06-23 17:08:09 +03:00
teidesu
c8dae335e8 feat: vacuum storage to reduce its size 2021-06-20 18:18:06 +03:00
teidesu
b45cc0df69 feat: rate limiting 2021-06-20 17:54:28 +03:00
teidesu
6b622f8399 fix(dispatcher): exported defaultStateKeyDelegate 2021-06-20 03:17:04 +03:00
teidesu
481f0db129 fix(dispatcher): provide state type information to filters 2021-06-20 02:52:19 +03:00
teidesu
5e7706a5a3 feat(dispatcher): callback data builder 2021-06-20 01:29:40 +03:00
teidesu
2ee5f1e279 fix(node): export html and md parsers 2021-06-20 00:43:31 +03:00
teidesu
92233d6d09 fix(client): do not pass empty message if no edit 2021-06-20 00:42:49 +03:00
teidesu
73d9a850ee fix(client): exported MessageAction and MessageMedia 2021-06-19 23:41:29 +03:00
teidesu
035435900b feat(dispatcher): filters.start filter for /start 2021-06-19 20:59:35 +03:00
teidesu
fbb5d7005f feat(dispatcher): support regex commands 2021-06-19 20:53:51 +03:00
teidesu
2682392d26 feat(client): mention() method for Chat
mostly done to unify User | Chat type interface and further simplify usage of msg.sender
2021-06-19 20:25:30 +03:00
teidesu
1238e7c32c fix(dispatcher): improved typings for action filter 2021-06-19 20:11:06 +03:00
teidesu
f44bf77a07 feat(dispatcher): support usernames and me/self in userId and chatId filters 2021-06-19 19:53:31 +03:00
teidesu
f2671d3c0b fix(dispatcher): handle commands that contain bot username 2021-06-18 19:21:22 +03:00
teidesu
1371f935cd fix(client): do not dispatch empty messages
this happens when the difference contains messages from other bots that the current bot can't see.
2021-06-18 19:20:58 +03:00
teidesu
645bd46e9d fix(markup): support link starting with // 2021-06-18 18:06:39 +03:00
teidesu
e3b2f747a9 feat(client): override caption and entities for sendMedia 2021-06-18 17:44:52 +03:00
teidesu
cbb8549068 fix(client): params type for answerMedia 2021-06-18 17:33:39 +03:00
teidesu
08517810fc fix(node): do not add handlers if bot token is passed 2021-06-18 17:16:10 +03:00
teidesu
b4716f321b tests(core): added fuzz tests for auth_key 2021-06-16 18:21:54 +03:00
teidesu
5849ce0e1b fix(core): better handling for additional connections 2021-06-16 18:21:17 +03:00
teidesu
77022e29c9 tests(core): added e2e and fuzzing tests 2021-06-15 03:12:22 +03:00
teidesu
0a45f5e71a fix(core): check for correct padding 2021-06-15 03:11:52 +03:00
teidesu
9928a9156a fix(client): redundant resends 2021-06-15 03:11:11 +03:00
teidesu
6c8eeb01d2 feat(dispatcher): wizard scene 2021-06-14 19:01:02 +03:00
teidesu
257f5392ea refactor(dispatcher): use enum instead of symbols for propagation 2021-06-14 18:58:07 +03:00
teidesu
707e317e16 stuff 2021-06-12 01:13:02 +03:00
teidesu
46317e8ddb fix(dispatcher): optimized every & some functions, improved types for them 2021-06-11 16:39:27 +03:00
teidesu
079d65b38d build: preparing for publish, day 6
i am slowly descending to madness

bugs fixed, stuff exported, and maybe something else
2021-06-10 02:31:48 +03:00
teidesu
c46f113f1f build: preparing for publish x5
at this point i'm way too tired to describe what happened.
stuff added, stuff removed, stuff fixed, i don't even remember anymore lol
2021-06-09 01:47:22 +03:00
teidesu
bcce752dfd build: preparing for publish x4
at this point i'm too tired to describe what happened
2021-06-08 00:37:13 +03:00
teidesu
7a0de134ba feat(dispatcher): local error handling 2021-06-07 23:59:17 +03:00
teidesu
8cbd6e14c8 build: prepare to publish x3
various package json fixes, improved node meta-package
2021-06-07 18:32:29 +03:00
teidesu
21d69e466e fix: handle private chat sender 2021-06-07 15:27:16 +03:00
teidesu
280c9f51aa build: preparing to publish (part 2)
fixed imports, package.json files, improved package generation for certain packages, and more (i'm too lazy to describe all the magic that i've done)
2021-06-06 19:23:43 +03:00
teidesu
ae2dbcf03f build: fixed scripts, eslintignore, fixed linter warnings and re-formatted with prettier 2021-06-06 15:20:41 +03:00
teidesu
5e05b099ed build: moved tl-reference to top layer to avoid cluttering yarn.lock with frontend deps 2021-06-06 15:02:06 +03:00
teidesu
1d21cd5e65 build: preparing to publish 2021-06-06 00:37:44 +03:00
teidesu
2cd443d6d1 feat(client): string sessions 2021-06-05 20:25:08 +03:00
teidesu
68ea4080df feat(core): handle AUTH_KEY_UNREGISTERED error 2021-06-05 18:56:43 +03:00
teidesu
79af4c4425 fix(tl-ref): history section navigation for prod 2021-06-05 18:33:35 +03:00
teidesu
599250d0af feat(tl-ref): history section, containing type history and older schemas 2021-06-05 17:46:58 +03:00
teidesu
685d75effd docs(tl): replace male pronouns with gender-neutral 2021-06-03 18:59:43 +03:00
teidesu
ecca291eba fix(dispatcher): handle custom key in getState 2021-05-31 23:29:26 +03:00
teidesu
9da72daac7 fix(dispatcher): do not propagate state and scene to children 2021-05-31 23:20:20 +03:00
teidesu
2c36d9cbf2 refactor(client): split reply* methods to reply* and answer* 2021-05-31 23:12:35 +03:00
teidesu
6ffb8616e3 fix(sqlite): handle stored objects from older incompatible tl layers 2021-05-31 22:56:58 +03:00
teidesu
d70ccaa1ad fix(client): improved channels difference loading 2021-05-31 22:50:39 +03:00
teidesu
1e9c4de86d fix(client): do not call toJSON for buffers 2021-05-31 22:36:48 +03:00
teidesu
2daf497cc4 feat: updated to TL layer 129 2021-05-31 22:36:26 +03:00
teidesu
d50a25eab9 feat(client): support comments and reply threads 2021-05-27 15:57:05 +03:00
teidesu
a0294b9a64 feat(dispatcher): fsm and scenes 2021-05-27 01:02:31 +03:00
teidesu
3845153871 docs(client): added info about "send when online" scheduled messages 2021-05-25 11:58:14 +03:00
teidesu
60162c88bc fix(client): avoid redundant help.getConfig call 2021-05-24 23:03:29 +03:00
teidesu
2dbd592206 docs(mtproxy): fixed jsdoc comment of MtProxyTcpTransport 2021-05-24 20:31:52 +03:00
teidesu
2bd94782e9 feat: mtproxy support
also some refactor in core transports
2021-05-24 20:29:18 +03:00
teidesu
76f078d931 fix(client): fixed imports in inline-utils.ts 2021-05-23 21:16:08 +03:00
teidesu
a2013acaf6 refactor: moved urlsafe base64 functions to core and exported them 2021-05-23 20:33:10 +03:00
teidesu
98fe7e3d31 refactor(dispatcher): avoid parsing unhandled updates 2021-05-23 15:38:03 +03:00
teidesu
b926178b9d refactor(dispatcher): store and lookup handlers by their type
avoids redundant loops over all registered handlers
2021-05-23 14:43:40 +03:00
teidesu
2d335af78e fix(dispatcher): reuse parsed updates in child dispatchers 2021-05-23 14:16:01 +03:00
teidesu
8e81ce21f2 fix(dispatcher): scheduled flag for new scheduled messages 2021-05-23 14:04:28 +03:00
teidesu
4599272c7c fix(client): do not catch up channels if disabled 2021-05-23 14:02:44 +03:00
teidesu
78bdc5fb01 fix(socks-proxy): remove headers field
faulty copypaste 🤷
2021-05-23 13:49:34 +03:00
teidesu
1b3f02f5f4 refactor: use Buffer.isBuffer 2021-05-23 13:42:38 +03:00
teidesu
1c4d9c1ab3 feat(core): change transport at runtime 2021-05-23 13:35:03 +03:00
teidesu
256b219247 feat: support socks4/5 proxies 2021-05-23 12:27:16 +03:00
teidesu
67a22ef1f2 feat(http-proxy): include proxy details in the error 2021-05-23 11:04:46 +03:00
teidesu
a46c6e8894 feat: support http(s) proxies 2021-05-23 01:56:59 +03:00
teidesu
649f86f3ed fix(client): avoid secondary db calls in resolvePeer 2021-05-22 18:58:17 +03:00
teidesu
126ed3016d feat: sqlite backed session for node js 2021-05-22 18:20:07 +03:00
teidesu
3ecef3bde4 feat(core): exported debounce function, implemented and exported throttle function. 2021-05-22 16:52:35 +03:00
teidesu
c228085bfe feat(client): improved min peers and short updates handling 2021-05-22 14:41:11 +03:00
teidesu
19d675e0fb feat(core): utf string length calculation optimization
only has effect on in-browser use when the Buffer is polyfilled, since with BrowserBuffer we had to write it twice.
2021-05-21 23:24:52 +03:00
teidesu
ee369a1c83 feat(core): int64 write optimization
this optimization gives about 10x performance boost on systems that support BigInt, and about 2x on those that don't
2021-05-21 22:15:25 +03:00
teidesu
c3fce178b6 feat: only update changed updates state (i.e. dont save pts if it hasnt changed) 2021-05-21 00:24:54 +03:00
teidesu
2660120e8f feat(core): support seq in updates 2021-05-19 21:21:12 +03:00
teidesu
910361ccab feat(core): implemented and exported lru map 2021-05-19 20:30:23 +03:00
teidesu
bdaa571777 feat(client): only send modified channel pts to storage 2021-05-19 17:37:11 +03:00
teidesu
82fb3d7e44 refactor: moved async lock to core and exported it 2021-05-16 23:05:53 +03:00
teidesu
9d8b09c5ff build: fixed node native addon build 2021-05-16 15:50:31 +03:00
teidesu
633f1fdf4d feat(client): editAdminRights method 2021-05-16 14:55:17 +03:00
teidesu
32ef1c59ad fix(client): handle updates in getNearbyChats method 2021-05-16 14:46:40 +03:00
teidesu
9bee00e584 fix(client): sendMediaGroup returns all sent messages 2021-05-16 14:43:23 +03:00
teidesu
e6e28399b0 refactor: prefer switches over ifs when possible 2021-05-16 14:32:36 +03:00
teidesu
f9336841ab feat(client): support inline message media contact 2021-05-16 13:49:32 +03:00
teidesu
d75071c284 refactor(client): made builder methods modify existing object instead of spreading, and also improved docs 2021-05-16 13:44:59 +03:00
teidesu
803daecdf3 feat(dispatcher): deleted messages update 2021-05-16 13:06:26 +03:00
teidesu
6e86ca464a feat(client): getCallbackAnswer method 2021-05-16 12:59:00 +03:00
teidesu
b4f731d831 feat(core): support rpc timeouts (for real) 2021-05-16 12:50:09 +03:00
teidesu
c092347b63 fix(client): fixed game highscore exports 2021-05-16 02:52:51 +03:00
teidesu
4852fe0301 feat(core): support rpc timeouts 2021-05-16 02:52:13 +03:00
teidesu
a6217c682d feat(core): support rpc timeouts 2021-05-16 02:50:43 +03:00
teidesu
fd1897651b feat(client): game high scores related methods 2021-05-16 02:21:59 +03:00
teidesu
b29883116b refactor(client): moved handling of inline messages to a separate method 2021-05-16 02:09:51 +03:00
teidesu
f45b602423 fix(tl): improved bot-only methods detection 2021-05-16 02:07:23 +03:00
teidesu
97ba7652ff refactor: use constructor check instead of instanceof where possible
this might just have introduced a bunch of errors, but ill test later
2021-05-15 21:17:49 +03:00
teidesu
f7e8051a94 refactor(client): made resolvePeer return InputPeer, and removed now redundant normalizeTo calls 2021-05-15 20:25:59 +03:00
teidesu
b634aa01eb feat(client): markChatUnread method
now i might be stupid
2021-05-12 22:37:09 +03:00
teidesu
482c71690d feat(client): markChatUnread method 2021-05-12 22:36:03 +03:00
teidesu
8cf4ce5533 feat(client): readHistory method and related bound methods 2021-05-12 22:31:29 +03:00
teidesu
4f40571455 feat(client): unpinAllMessages method 2021-05-12 22:18:08 +03:00
teidesu
79a8962284 feat(client): chat restrictions related methods 2021-05-12 22:07:00 +03:00
teidesu
30253c83c7 refactor(client): normalized MtCuteTypeAssertionError errors 2021-05-12 18:16:50 +03:00
teidesu
9be7b0d6c9 refactor: prefer switches to else-if chains 2021-05-12 17:58:45 +03:00
teidesu
6879ae945a feat(tl): generate switches instead of OR expressions
switches are WAY faster.
2021-05-11 23:27:09 +03:00
teidesu
f19fdf76b8 refactor(client): improve resolvePeer normalization 2021-05-11 23:21:35 +03:00
teidesu
8b3caeb3d0 feat(client): resolvePeerMany method 2021-05-11 22:43:11 +03:00
teidesu
46973c4830 fix(dispatcher): fixed field names because webstorm sucks 2021-05-11 22:34:13 +03:00
teidesu
5b3d7a3b09 refactor(client): normalized boolean fields 2021-05-11 22:10:14 +03:00
teidesu
d8cd13fd60 refactor(client): use ReadonlyArray for getter return types 2021-05-11 22:02:00 +03:00
teidesu
61778dba8e Merge remote-tracking branch 'origin/master' into master 2021-05-11 21:47:10 +03:00
teidesu
0f1edcfcf7 refactor: use UsersIndex and ChatsIndex types instead of bare record types 2021-05-11 21:46:59 +03:00
es3n1n
d587fcaa4e
fix typo
imagine writing macroses instead of macros
2021-05-10 22:57:09 +02:00
teidesu
0525800133 feat(client): getNearbyChats method 2021-05-10 22:51:35 +03:00
teidesu
f0eb95e4ba feat(client): chat event logs
also added support for chat locations and fixed ts errors
2021-05-10 21:51:25 +03:00
teidesu
4ad562bf06 fix(client): message media and action parsing 2021-05-10 17:57:12 +03:00
teidesu
db0d5f51e4 feat(dispatcher): filtering for service messages, by chat type and for text-only msgs 2021-05-10 17:30:05 +03:00
teidesu
9df635ad92 refactor(client): extract message media to separate type and file 2021-05-10 17:04:46 +03:00
teidesu
fe0f0849a4 refactor(client): extract message action to separate type and file 2021-05-10 16:36:16 +03:00
teidesu
e28ec79110 feat(client): support more service messages 2021-05-10 16:29:33 +03:00
teidesu
977527b78a fix(core): handle concurrent saving for the file
this is very hacky, but idk how to make it better.
2021-05-10 14:28:39 +03:00
teidesu
f3e4a34eab feat(client): deleteUserHistory method, also properly handle messages.affectedHistory
i suppose? this is an incredibly bad hack but i guess it works so who cares?
2021-05-10 14:27:57 +03:00
teidesu
c678a0ef6a fix(client): handle channel difference properly 2021-05-10 14:21:46 +03:00
teidesu
ded667b332 feat(client): chat invite links related methods 2021-05-10 00:35:29 +03:00
teidesu
ac0ddc5c6d feat(client): support seamless login for bots
also slightly improved docs for BotKeyboard
2021-05-09 20:41:54 +03:00
teidesu
cae7f90c57 fix(core): payload size limit 2021-05-09 19:34:25 +03:00
teidesu
df84137391 feat(client): get messages inside message groups 2021-05-09 18:29:33 +03:00
teidesu
87a7df669a feat(client): user related methods 2021-05-09 14:35:58 +03:00
teidesu
192c0f773e feat(client): control 2fa password 2021-05-09 14:35:47 +03:00
teidesu
320f4fdd24 fix(core): empty strings and zero numbers are also included in the flags and serialization 2021-05-09 14:34:52 +03:00
teidesu
0c9dfa172d feat(client): stop geolive messages 2021-05-09 12:03:45 +03:00
teidesu
b845864663 feat(client): sendCopy method 2021-05-08 17:54:18 +03:00
teidesu
cb01d8250e feat(client): renamed inputMediaTl to inputMedia and added it to every kind of media
also fixed imports/exports
2021-05-08 17:53:59 +03:00
teidesu
002d949a13 feat: user status and typing related methods and updates 2021-05-08 16:35:25 +03:00
teidesu
8a0c9984b5 feat(client): closePoll method 2021-05-08 13:19:37 +03:00
teidesu
9df884e667 feat(client): sendVote method 2021-05-08 12:36:15 +03:00
teidesu
d36c1781bd feat(dispatcher): support poll related updates
also fixed a few type and export issues, and changed poll option generation to match tdlib and others
2021-05-07 15:37:17 +03:00
teidesu
6db771e3da feat(client): a lot of changes
- support web documents
 - support previews for locations
 - unify media interfaces, merge everything into sendMedia
 - support invoices, polls, venues (both sending and receiving)
2021-05-07 14:26:29 +03:00
teidesu
169d95d6ed fix(core): lowercase usernames index 2021-05-07 12:41:06 +03:00
teidesu
90e1e018f5 feat(core): functions to (de-)serialize TL JSON 2021-05-06 15:20:23 +03:00
teidesu
b157b52ff6 feat(client): setStickerSetThumb method 2021-05-06 12:11:09 +03:00
teidesu
09064bb084 fix(client): sticker set negative indexes 2021-05-06 11:54:10 +03:00
teidesu
bbb8b20420 feat(client): sticker set methods for bots, and overall better sticker support 2021-05-05 23:26:28 +03:00
teidesu
5ea2ed67d7 fix(client): support for external media for uploadMedia in normalizeInputMedia 2021-05-05 19:59:08 +03:00
teidesu
b409292497 fix(client): support for uploaded media in editInlineMessage
thanks to @pacificescape for pointing out messages.uploadMedia method
2021-05-05 18:43:02 +03:00
teidesu
d841188149 fix(core): only switch dc for primary connection 2021-05-05 18:24:16 +03:00
teidesu
00c308dca7 feat(dispatcher): support more types in regex filter, inline filter for callback queries 2021-05-05 02:05:27 +03:00
teidesu
1fb7057866 feat: support callback queries 2021-05-05 01:50:04 +03:00
teidesu
95f6515340 fix(dispatcher/codegem): added @internal mark, also removed console log call 2021-05-05 00:45:09 +03:00
teidesu
1c1aed147a refactor(dispatcher): codegen for update types
i'm just too lazy to be bothered with pasting that. also, i forgot to implement builder for editMessage, teehee~
2021-05-05 00:43:35 +03:00
teidesu
fd92121b14 fix(core): do not rename in case of an error while writing 2021-05-04 14:13:06 +03:00
teidesu
23dcc4c1e5 feat: support for chosen inline query results 2021-05-04 14:07:40 +03:00
teidesu
97cbf10d3d fix(client): do not catch up after first update is received 2021-05-04 13:11:41 +03:00
teidesu
2226428164 docs(tl): added missing venue provider 2021-05-04 13:09:22 +03:00
teidesu
d469b81a85 feat(client): support all possible inline results and messages 2021-05-04 13:08:20 +03:00
teidesu
03bf248658 feat(client): edit media and schedule date in the message 2021-05-03 14:30:12 +03:00
teidesu
8bd81adacc feat: node native addon for faster aes ige 2021-05-01 21:22:20 +03:00
teidesu
f4c0c1bd31 fix(core): properly handle resending of pending rpc calls 2021-05-01 21:19:07 +03:00
teidesu
2034ae8b28 feat(client): support downloading from file ids 2021-05-01 21:10:49 +03:00
teidesu
9303d0841a feat(client): sendMediaGroup method 2021-05-01 00:30:53 +03:00
teidesu
a67c4ae85e refactor(client): extracted input file and media normalization to own methods, merged sendPhoto and sendMedia methods 2021-04-30 23:57:24 +03:00
teidesu
0eb0ac91eb feat(client): support file:* for simpler file uploads by path
holy shit code for handling file is getting more and more ridiculous. i wonder if i could refactor it somehow...
2021-04-30 22:44:17 +03:00
teidesu
f6d229f250 feat(client): added fileId field for documents 2021-04-30 20:52:16 +03:00
teidesu
3bb9a61ac7 feat(client): support file ids in sendMedia, sendPhoto and sendChatPhoto methods 2021-04-30 20:51:50 +03:00
teidesu
c0b72018fb feat(client): fileId and uniqueFileId fields for Thumbnail 2021-04-30 00:04:25 +03:00
teidesu
d3b320eea0 feat(file-id): option to pass a reduced set of fields to toUniqueId 2021-04-30 00:03:47 +03:00
teidesu
8b5060d2cd feat: file-id package to parse, serialize and manipulate tdlib-compatible file ids 2021-04-29 22:30:36 +03:00
teidesu
1da905ab3d feat(core): export BinaryReader and BinaryWriter 2021-04-29 22:29:59 +03:00
teidesu
3336f295ee feat: basic inline queries support (only articles for now) 2021-04-28 23:00:51 +03:00
teidesu
8bb23cd464 feat(dispatcher): chatMemberSelf filter 2021-04-27 20:42:23 +03:00
teidesu
fa3c719312 feat(dispatcher): support chat member updates 2021-04-27 20:31:04 +03:00
teidesu
7e9f255fdc feat(client): chat invite link class 2021-04-27 20:30:20 +03:00
teidesu
85671f6e6a refactor(client): type assertion inside User constructor 2021-04-26 23:26:57 +03:00
teidesu
5fee1d0660 fix(client): better storage handling
i suppose?? i mean, it's definitely better than randomly losing updates state and entities, but this might be much slower?
2021-04-26 23:26:29 +03:00
teidesu
b4a26c6f5b fix(client): disable catch up by default, also save storage after catching up 2021-04-26 22:41:19 +03:00
teidesu
a4f6c42bf5 feat(client): custom filtering for getDialogs 2021-04-25 21:47:44 +03:00
teidesu
bfcea5a80d feat(client): isAdmin and adminRights getters for Chat 2021-04-25 17:32:35 +03:00
teidesu
39236c94c2 feat(client): contacts related methods 2021-04-25 17:10:37 +03:00
teidesu
2fc8a90edf feat(client): better support for sticker sets, getInstalledStickers and getStickerSet methods 2021-04-25 15:39:42 +03:00
teidesu
68ce10d292 fix(chat): support display name for deleted users 2021-04-25 14:24:28 +03:00
teidesu
d26a2965d6 fix(chat): support chatForbidden and channelForbidden 2021-04-25 14:05:22 +03:00
teidesu
3aa53c7830 fix(markdown): fixed escape regex 2021-04-25 13:57:01 +03:00
teidesu
9545e9e24a feat(chat): expose chat user as a User 2021-04-25 13:40:36 +03:00
teidesu
960f994660 fix(user): support deleted accounts 2021-04-25 13:40:04 +03:00
teidesu
756e43c56a fix(updates): stupid no-dispatch related error 2021-04-25 13:39:07 +03:00
teidesu
1657090e33 fix(entities): replace user mentions with input user mentions after parsing 2021-04-25 13:38:56 +03:00
teidesu
dea02c9c39 fix(parse-modes): negative access hashes for permanent mentions 2021-04-25 13:34:06 +03:00
teidesu
f55d099b5f fix(markdown): escape closing square bracket 2021-04-25 13:26:43 +03:00
teidesu
64d860cc4c feat(client): support takeout session 2021-04-24 21:11:34 +03:00
teidesu
77ab185493 fix(core): properly handle WORKER_BUSY_TOO_LONG_RETRY error 2021-04-24 20:13:36 +03:00
teidesu
3ca8f847e6 fix(client): do not catch up id disableUpdates is used 2021-04-24 20:02:40 +03:00
teidesu
df2d77ec90 fix(client): limit number of messages in forwardMessages method 2021-04-24 19:56:09 +03:00
teidesu
cf29ffe31d feat(client): findFolder method, also ability to pass folder name in editFolder 2021-04-24 19:27:14 +03:00
teidesu
a51c1ae48c fix(client): stupid parse modes related bug 2021-04-24 19:26:23 +03:00
teidesu
0d3490ad7b feat(client): forwarding messages 2021-04-24 19:00:11 +03:00
teidesu
007343fb09 fix(client): proper handling of *TooLong updates 2021-04-24 18:51:59 +03:00
teidesu
fa7669f65e fix(core): support min entities from replies and updates difference 2021-04-24 18:25:15 +03:00
teidesu
3b88ac0bab fix(client/codegen): better handling of overloads 2021-04-24 18:01:35 +03:00
teidesu
63471115ae feat(core): safe file write, and also cleanup function using exit-hook package 2021-04-24 17:20:01 +03:00
teidesu
48d328f486 feat(client): run method that wraps start() 2021-04-24 16:33:06 +03:00
teidesu
c863e7a854 fix(client): better updates handling, also emit updates returned by RPC methods 2021-04-24 16:23:30 +03:00
teidesu
58f4356d58 fix(client): use 6-digit codes for test phone numbers 2021-04-24 16:08:43 +03:00
teidesu
b28e85ca0a feat(client): support for forwarding already uploaded media (for photos and documents) 2021-04-23 22:36:00 +03:00
teidesu
70c01a62a3 refactor(updates): extracted dispatcher to own package, fixed various update related bugs 2021-04-23 22:35:37 +03:00
teidesu
3d8094b69f fix(lock): properly handle multiple concurrent acquires 2021-04-20 21:58:50 +03:00
teidesu
878c0e35e4 feat(client/codegen): slightly changed code generation to avoid creating redundant wrapper functions 2021-04-18 16:59:05 +03:00
teidesu
87481c9a32 rewrite(client): improved updates handling, added support for min entities 2021-04-18 16:23:25 +03:00
teidesu
bcc5321cee refactor(client): use _saveStorage instead of storage.save 2021-04-17 19:00:46 +03:00
teidesu
0b361d0b8d refactor(core): moved storage load&save to methods to allow overriding logic in subclasses 2021-04-17 18:56:51 +03:00
teidesu
95069d0120 feat(client): startTest method
test numbers dont seem to work currently though.
2021-04-17 10:05:31 +03:00
teidesu
d8c2ef91c4 feat(client): folders 2021-04-16 00:12:07 +03:00
teidesu
69270a66a2 feat(core): websocket transport
untested in browser (yet). also had to slightly refactor stuff
2021-04-15 19:45:01 +03:00
teidesu
9e681cb13f fix(core): continuous aes ctr 2021-04-15 19:39:41 +03:00
teidesu
afa679cef4 fix(core): hopefully fixed issue with json file session randomly disappearing when using debugger 2021-04-15 12:18:50 +03:00
teidesu
874ea6c0a2 fix(tl-ref): layout and content preprocessing fixes 2021-04-15 09:50:07 +03:00
teidesu
ad511546ca fix(tl-ref): usage count for arrays in return types 2021-04-14 23:11:37 +03:00
teidesu
c286570500 refactor: made all packages private and changed main to typescript file 2021-04-14 22:53:10 +03:00
teidesu
c949709de2 fix(tl): added generate-errors script to generate-code 2021-04-14 22:50:29 +03:00
teidesu
73312e2809 feat(tl-ref): bold names of required parameters 2021-04-14 22:10:43 +03:00
teidesu
c318c059f8 fix(tl-ref): fixed arrays and core types for return types 2021-04-14 21:54:52 +03:00
teidesu
e6dd822644 feat(client): methods for dialogs, also added support for drafts and clearing them 2021-04-14 21:31:51 +03:00
teidesu
7a463f22a3 feat(tl-ref): find usages in array arguments 2021-04-14 20:00:14 +03:00
teidesu
14dc62e912 feat(client): getChatMembers and iterChatMembers methods 2021-04-14 19:43:05 +03:00
teidesu
958dd60c75 feat: tl reference web application
available at https://mt.tei.su/tl/
2021-04-14 18:08:53 +03:00
teidesu
eae2c7f459 feat(tl): additional descriptions for types and parameters without one
also updated to layer 126
2021-04-11 23:33:01 +03:00
teidesu
a6f9c02ef7 fix(tl): renamed errors.json to raw-errors.json to avoid confusion with js/ts files 2021-04-11 19:41:39 +03:00
teidesu
dd6e90bef6 feat(tl/codegen): made generate-errors emit errors list as a json file 2021-04-11 19:40:26 +03:00
teidesu
cdd01d43fc feat(client): setChatUsername method 2021-04-11 16:32:10 +03:00
teidesu
4371e9b63a feat(client): pinMessage and unpinMessage methods, pin and unpin bound methods for Message 2021-04-11 16:25:17 +03:00
teidesu
e3ff2b9041 feat(client): setChatDefaultPermissions and setSlowMode methods 2021-04-11 16:11:28 +03:00
teidesu
a06c03eda9 feat(client): setChatTitle and setChatDescription methods 2021-04-11 15:32:38 +03:00
teidesu
173647dda6 feat(client): setChatPhoto and deleteChatPhoto methods 2021-04-11 15:22:48 +03:00
teidesu
89dafa570b feat(client): getChatMember method and ChatMember class 2021-04-11 14:56:34 +03:00
teidesu
75dc961d65 feat(client): createGroup, deleteGroup, deleteHistory and leaveChat methods 2021-04-11 00:37:12 +03:00
teidesu
eb9b004b44 fix(client/codegen): fix rare crash when parsing default arguments
i have no idea why having .parent makes it crash but whatever lol.
2021-04-10 23:12:07 +03:00
teidesu
9edaa438fd feat(client): createSupergroup method 2021-04-10 21:08:04 +03:00
teidesu
f81329eecf fix(client): removed "broadcast groups"
that was my misunderstanding of docs 🤷
2021-04-10 21:07:33 +03:00
teidesu
02975b3793 feat(client): createChannel, deleteChannel, deleteSupergroup methods
intentionally no bound method for Chat because it would be way too easy to accidentally delete some chat.
2021-04-10 20:56:09 +03:00
teidesu
c0103441d3 feat(client/codegen): aliases for methods 2021-04-10 20:51:45 +03:00
teidesu
8acad15d7c fix(client): archiveChats & unarchiveChats and respective bound methods for Chat 2021-04-10 20:30:28 +03:00
teidesu
d592e55294 fix(client): force save session in checkPassword 2021-04-10 20:09:28 +03:00
teidesu
f0cf8a50a1 feat(client): addChatMembers method and related bound method for Chat 2021-04-10 20:06:33 +03:00
teidesu
f4907639b5 feat(client): output parameters with defaults as optional and include their default value in docs 2021-04-10 18:33:05 +03:00
teidesu
383f133292 feat(client): chats and chat joining related methods, bound methods and classes 2021-04-10 17:11:25 +03:00
teidesu
6911d7d756 feat(client): replyPhoto, replyMedia, replyDice, replyLocation bound methods for Message 2021-04-10 16:03:33 +03:00
teidesu
97cbfd4840 feat(client): sendLocation method 2021-04-10 15:23:27 +03:00
teidesu
0f2744b997 feat(client): sendDice method 2021-04-10 15:10:34 +03:00
teidesu
7e4142a572 feat(client): sending document-like media (files, audios, videos, gifs, voices) 2021-04-10 13:28:02 +03:00
teidesu
0901f97e0d refactor(client): removed type modification from sendText and sendPhoto return types 2021-04-10 11:54:31 +03:00
teidesu
97e6eb1403 refactor(client): renamed MediaLike to InputFileLike 2021-04-10 11:51:17 +03:00
teidesu
465a875460 feat(client): editMessage method
also .edit and .editText bound methods for Message
2021-04-09 23:19:58 +03:00
teidesu
e17ab84c37 feat(client): searchGlobal method
also small limit-related fix for searchMessages
2021-04-09 13:08:32 +03:00
teidesu
3a2537cd1a feat(client): searchMessages method
also added an object for search filters
2021-04-08 22:56:40 +03:00
teidesu
451fdd0cfc feat(client): iterHistory method
also fixed a few issues with getHistory
2021-04-08 21:40:04 +03:00
teidesu
4f62b98b5e feat(client): getHistory and deleteMessage methods
also bound .delete() method for Message
2021-04-08 20:25:15 +03:00
teidesu
8fc2f02a13 fix(client/message): hide link property from inspect 2021-04-08 20:24:14 +03:00
teidesu
91dbba948e refactor(client): extracted users/chats index creation to function 2021-04-08 20:23:23 +03:00
teidesu
35dc5561a1 refactor(api): extracted date parameters normalization to utils 2021-04-08 16:17:59 +03:00
teidesu
974ce8c136 fix(markdown/readme): typos 2021-04-08 12:29:06 +03:00
teidesu
cd8ec8309f Initial commit 2021-04-08 12:19:38 +03:00