teidesu
2c54751029
fix(client): hopefully fix random MEDIA_EMPTY errors when editing inline
2022-07-10 01:38:23 +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
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
9039830572
feat(client): support reactions
2022-05-12 10:09:37 +03:00
teidesu
63d0ea2ddf
feat(client): support join requests
2022-05-09 17:25:38 +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
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
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
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
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
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
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
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
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
d611f91f19
feat: parse mode template literals override default/passed parse mode
2021-07-09 16:39:45 +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
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
8b6d587399
fix(client): improved own username handling
2021-07-05 17:26:30 +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
9ed51fd996
fix: made .mention() work with tagged templates
2021-07-02 21:28:30 +03:00
teidesu
03cb8fd5e8
docs(client): updated docs for createStickerSet
2021-07-02 19:52:14 +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
42f6ed1357
feat(client): bot commands related methods
2021-06-26 19:45:06 +03:00
teidesu
bf84556776
fix(client): made _handleUpdate method public
2021-06-24 00:13:10 +03:00
teidesu
92233d6d09
fix(client): do not pass empty message if no edit
2021-06-20 00:42:49 +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
e3b2f747a9
feat(client): override caption and entities for sendMedia
2021-06-18 17:44:52 +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
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
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
d70ccaa1ad
fix(client): improved channels difference loading
2021-05-31 22:50:39 +03:00
teidesu
d50a25eab9
feat(client): support comments and reply threads
2021-05-27 15:57:05 +03:00
teidesu
3845153871
docs(client): added info about "send when online" scheduled messages
2021-05-25 11:58:14 +03:00
teidesu
4599272c7c
fix(client): do not catch up channels if disabled
2021-05-23 14:02:44 +03:00
teidesu
1b3f02f5f4
refactor: use Buffer.isBuffer
2021-05-23 13:42:38 +03:00
teidesu
649f86f3ed
fix(client): avoid secondary db calls in resolvePeer
2021-05-22 18:58:17 +03:00
teidesu
c228085bfe
feat(client): improved min peers and short updates handling
2021-05-22 14:41:11 +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
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
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
6e86ca464a
feat(client): getCallbackAnswer method
2021-05-16 12:59:00 +03:00
teidesu
c092347b63
fix(client): fixed game highscore exports
2021-05-16 02:52:51 +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
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
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
0f1edcfcf7
refactor: use UsersIndex and ChatsIndex types instead of bare record types
2021-05-11 21:46:59 +03: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
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