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